Linked Questions

0 votes
1 answer
7k views

How to mount password protected windows share without sudo in shell script?

In order to pass a password in a shell script you will have to write: sudo mount -t cifs -o password=asdasd,username=mc007,uid=1000 //192.168.1.105/cfmaster/ /PMaster/projects/x4mm/win But there are ...
xamiro's user avatar
  • 555
1 vote
1 answer
5k views

Start Specific Terminal on Startup

I coded an application using libpcap and ncurses. Obviously, this application is supposed to run in the terminal. Therefore, I created a script that launches my application in gnome-terminal with a ...
TacoVox's user avatar
  • 33
1 vote
1 answer
2k views

Make a file with root access only and able to be accessed by another file without using a password

I have two files A and B. I need the contents of A to be accessible only by root, so I have run the command chmod 000 A. Now, I want file B to be able to access file A without asking for the root ...
Sam Hartwright's user avatar
2 votes
1 answer
2k views

How can I create a shortcut between Ubuntu 16 and Windows 10 on a dualboot? [duplicate]

I'm looking for a one-click shortcut to log out, restart, and boot in the opposite operating system. The only information I've found online is between Windows and Windows and I'm not sure if it's ...
Largobone's user avatar
1 vote
1 answer
2k views

Encrypt custom eCryptfs folder on login/logout (with filename encryption) automatically [duplicate]

When my laptop gets stolen, it would be nice to have my documents safely inaccessible in my custom folder (not ~/Private, but e.g. ~/.docs), where I also plan to move keyring and some configs. I don't ...
Sebastian's user avatar
  • 1,188
1 vote
2 answers
4k views

wakeonlan and/or etherwake WITHOUT sudo?

I'm trying to use wakeonlan to send a magic packet. However, It only works if I use sudo: sudo wakeonlan xx:xx:xx:xx:xx:xx When I don't use sudo the output says the magic packet has sent, but the ...
jsmith123's user avatar
6 votes
1 answer
938 views

Use a sudo to mount an external disk on remote device

I'm currently working on two devices, one testing the other. They are based on beaglebone black, and run under Ubuntu 14.04. My problem is I have to detect and mount a USB external storage on the ...
Incarcerion's user avatar
1 vote
1 answer
2k views

How to run a command with one click, preferably from unity's launcher

I'd like to run this command without having to open up terminal every time. sudo openvpn --config /home/ubuntu/Documents/vpnbook/vpnbook-euro2-udp25000.ovpn --auth-user-pass /home/ubuntu/Documents/...
Adam's user avatar
  • 1,365
3 votes
2 answers
2k views

SSH repository apt get update without password

I'm trying to build a private apt repository using reprepro. I managed to get password-less SSH login after creating a SSH key chain. I can successful login to the repository if I SSH into it. On the ...
Guy Liqui Lung's user avatar
1 vote
3 answers
2k views

How do I turn off the backlight on my keyboard? (2011 sony vaio PCG-41217N laptop)

This question exists for some other sony vaio laptop models (without answer); I haven't yet seen an answer for the sony vaio PCG-41217N laptop. The suggestion to execute xset led off doesn't disable ...
DBinJP's user avatar
  • 1,369
2 votes
1 answer
3k views

Can I start Terminator as root?

I am using Terminator, because it has cool ability to split itself into more terminals. But can it be run as root, without need to type sudo -i after launch? (adding Run as root into Terminator shell ...
PKM's user avatar
  • 829
0 votes
1 answer
2k views

Allow nopasswd sudo for specific user

I am trying to set the scp as a specific user with NOPASSWD. alice ALL = (bob:ALL) NOPASSWD: /usr/bin/scp As I did understand from this question. However when I save using my visudo I still can't ...
Stolas's user avatar
  • 111
1 vote
1 answer
2k views

Set 'niceness' Without Elevating Permissions On The Executed Program

A separate user has been created whose purpose is to execute a script that keeps a particular process running constantly on my server. This process needs to run at a higher priority requiring it to ...
KKlouzal's user avatar
  • 113
0 votes
1 answer
2k views

command line: start program by alacarte as sudo in folder/tree

i have installed a program via github in: /home/user/folder/program. to get this to run via the terminal i use the following commands. cd folder sudo ./program but i would like to have a short ...
Matthieu Kints van's user avatar
1 vote
2 answers
1k views

Set up sudo so that a particular common user can edit /etc/fstab

How can I set up sudo so that a particular common user can edit /etc/fstab? I've thought to edit /etc/sudoers.d file to do this, but how do we edit /etc/fstab in this file?
user avatar

15 30 50 per page