Results 1 to 3 of 3
Greetings
I'm using Ubuntu 9.10 on a home network (without internet access)
Occasionally I need to restart the print server.
Code:
xterm -e 'sudo /etc/init.d/samba restart'
each time it asks ...
- 11-10-2009 #1Just Joined!
- Join Date
- Nov 2009
- Posts
- 3
Restart Print server with Xterm, but without a password
Greetings
I'm using Ubuntu 9.10 on a home network (without internet access)
Occasionally I need to restart the print server.
each time it asks for the password but because this is a closed network, I'd like to dispense with it asking for the user password each time.Code:xterm -e 'sudo /etc/init.d/samba restart'
Any suggestions?
- 11-11-2009 #2
You can edit the sudoer file to disable passwords for specific commands.
Sudoers Manual
Something like
Use visudo to edit. It uses vi as the default editor. You might want to change that to something like nano, which is a little more intuitive to use.Code:aurbo localhost = NOPASSWD: /etc/init.d/samba restart
Code:sudo EDITOR=nano visudo
- 11-11-2009 #3Just Joined!
- Join Date
- Nov 2009
- Posts
- 3
Thanks,
I'll give it a try
Steve


Reply With Quote
