Kimarite"sudo only allows you to do things specified by the sudoers file. It offers very fine grained control since you could give access to only the programs you want them to have access to. If you allow sudo bash however, you grant a root level shell. You can do anything root can do at a shell. It gets around the advantages of sudo and sudoers and basically makes the user root. – Bacon Bits Apr 26 at 20:39"
http://superuser.com/questions/417321/why-is-sudo-bash-needed
A többi hozzászólást is érdemes olvasgatni.
Sajnos angolul nem igazán tudok
http://unix.stackexchange.com/questions/35338/su-vs-sudo-s-vs-sudo-bash
de itt a fórumon itt volt szó a sudo többféle használatáról. Én maradtam annál a megoldásnál, hogy:
Egyszeri sudo
Sudozásnál az egyik megoldás lehet a -k kapcsoló használata, mert akkor nem fogja megjegyezni a jelszót. A másik, globálisabb megoldás pedig a /etc/sudoers fájl szerkesztése: A
Defaults env_reset
sor írd át ilyenre:
Defaults env_reset , timestamp_timeout = 0
majd ments el a fájlt.
de erről nem vitatkozom :D .