is it just me? I am wondering why half the time I try to use the sudo command it doesn’t work I have to su/password which is a little bit annoying especially if I have to exit out of superuser or open up a second or third terminal to do another command that doesn’t need to be superuser and then do another su/ password , when all I should have to do is use sudo then command
here is an example sudo shutdown -r now and sudo modprobe for either of those commands I have to sign in as superuser
You want to type
sudo /sbin/shutdown …
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
‘sudo’ can be configured to either require a password or not. If you do
not want to enter a password every time then configure you /etc/sudoers
file appropriately. The man page talks about this… I believe the
parameter is NOPASSWD.
Good luck.
Shadowmeph wrote:
> is it just me? I am wondering why half the time I try to use the sudo
> command it doesn’t work I have to su/password which is a little bit
> annoying especially if I have to exit out of superuser or open up a
> second or third terminal to do another command that doesn’t need to be
> superuser and then do another su/ password , when all I should have to
> do is use sudo then command
> here is an example sudo shutdown -r now and sudo modprobe for either of
> those commands I have to sign in as superuser
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI0V5Z3s42bA80+9kRAjaeAJ9iy10X0esalO5YlfOjA1+P+vQaQQCfR5ZP
l7v/zkGVb3XG1CPhUR0OoWw=
=38rr
-----END PGP SIGNATURE-----
isn’t there a way just to use the sudo command instead of going to su all the time or is there a list of sudo commands I can find that work because I never used a command like this before sudo /sbin/shutdown doen’t that just shutdown and not reboot?
You would do
sudo /sbin/shutdown -r now
When you use sudo in SUSE it uses your path by default, not root’s path, which is why you need to specify the location of the shutdown command.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wow… I completely misunderstood the question didn’t I? Sheesh…
Good luck.
einheit47 wrote:
> You would do
>
> sudo /sbin/shutdown -r now
>
> When you use sudo in SUSE it uses your path by default, not root’s
> path, which is why you need to specify the location of the shutdown
> command.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFI0W+Y3s42bA80+9kRAjwqAJ0YgFutIEaqz/n18C+GesdNRZ+XnwCeMb1g
4Ilc+M9dkjamSDiOjY8mzPo=
=P0pw
-----END PGP SIGNATURE-----
oh that explains allot lol