Results 1 to 4 of 4
Anyone know if it is possible to create an alias that calls a script that will SU to a different ID and log me in.
Currently I have to log ...
- 05-23-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 1
Login
Anyone know if it is possible to create an alias that calls a script that will SU to a different ID and log me in.
Currently I have to log in using my ID and the SU to an administrator ID. Just kind of a pain to do all the time.
- 05-24-2011 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Usually, a user that needs root privileges is given that capability with the /etc/sudoers file, so they can run a command prefixed with "sudo" to run the command as root.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 05-26-2011 #3
- 05-26-2011 #4Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
Doing this (auto login as sudo user) is a VERY BIG security hole, and will compromise your system security. It is NOT recommended. Requiring user-input confirmation via a password is advisable. That said, I violate this maxim myself, by allowing myself admin/root privileges on my workstation with a simple "sudo su" command...
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
