View previous topic :: View next topic |
Author |
Message |
nesl247 Veteran

Joined: 15 Jun 2004 Posts: 1614 Location: Florida
|
Posted: Mon Dec 26, 2005 4:26 pm Post subject: |
|
|
andyfaeglasgow wrote: | You can actually do this without using ssh or sudo by configuring pam.
Check out /etc/pam.d/su. If you uncomment one of the lines in there, wheel users can su to root without any password required. If someone is sitting on your machine as a wheel user you're in trouble anyway. |
Thats what my post was about... |
|
Back to top |
|
 |
humbletech99 Veteran


Joined: 26 May 2005 Posts: 1229 Location: London
|
Posted: Mon Dec 26, 2005 11:09 pm Post subject: |
|
|
yeah, I'm aware of how cool pams are but they're also quite complicated to first look at and if you don't get them exactly right you'll screw your system and you'd have to do a recovery, so if somebody isn't familiar it's best to leave them alone as they aren't worth the hassle.
generally it's easier to just put the line in sudoers to allow sudoing without a password and then sudo su without needing a passwd. you could create an alias in your bashrc script as follows su="sudo su" and then all will work as desired with transparent ease.
Still think it's better to just su and put in your passwd though... |
|
Back to top |
|
 |
cornet n00b

Joined: 11 Mar 2003 Posts: 12
|
Posted: Wed Dec 28, 2005 5:40 pm Post subject: |
|
|
humbletech99 wrote: |
generally it's easier to just put the line in sudoers to allow sudoing without a password and then sudo su without needing a passwd. you could create an alias in your bashrc script as follows su="sudo su" and then all will work as desired with transparent ease.
|
Still a silly idea, definitly not for use on a production server.
humbletech99 wrote: |
Still think it's better to just su and put in your passwd though... |
Indeed - if you're unsure about anything said in this thread then just stick with passwords.
Cornet |
|
Back to top |
|
 |
humbletech99 Veteran


Joined: 26 May 2005 Posts: 1229 Location: London
|
Posted: Wed Dec 28, 2005 11:11 pm Post subject: |
|
|
Indeed, I prefer to stick with passwords, they're not that much trouble and any seasoned sysadmin will be more than used to putting them in all the time...
Su and use a password. Simplest, safest and most elegant solution. |
|
Back to top |
|
 |
pyxel n00b


Joined: 04 Nov 2005 Posts: 44 Location: Bratislava/brussels
|
Posted: Fri Feb 10, 2006 7:20 pm Post subject: |
|
|
my mean:
Code: | # cat /etc/sudoers
...
root ALL=(ALL) ALL
pyxel ALL=(ALL) NOPASSWD: ALL
... |
Code: |
# cat /home/pyxel/.bashrc
...
alias su='sudo su'
... |
and just type su for root login. |
|
Back to top |
|
 |
ectospasm l33t


Joined: 19 Feb 2003 Posts: 711 Location: Mobile, AL, USA
|
Posted: Fri Feb 10, 2006 10:05 pm Post subject: |
|
|
pyxel wrote: | my mean:
Code: | # cat /etc/sudoers
...
root ALL=(ALL) ALL
pyxel ALL=(ALL) NOPASSWD: ALL
... |
Code: |
# cat /home/pyxel/.bashrc
...
alias su='sudo su'
... |
and just type su for root login. |
That's what I eventually ended up doing (except my alias is "sup", just for the sake of making it distinct). The only thing I miss from the ssh method is the notice I'd receive of my last login when I'd login, and I'm too lazy to figure out how to put it in .bashrc... _________________ Join the adopt an unanswered post initiative today
Join the EFF!
Join the Drug Policy Alliance! |
|
Back to top |
|
 |
Xk2c Apprentice


Joined: 17 Jul 2004 Posts: 240
|
|
Back to top |
|
 |
|