Being a newbie, can someone help with sudo and setuid
I am having difficulties with understaanding sudo and setuid.
Is it possible to get the steps involved for setting these up and then running them? Thanks |
Quote:
For setuid: I am thinking you might be mixing this up with su. Try this to become root (that's su and a hyphen): Code:
su - Next, sudo is another way to gain elevated priveledges without actually becoming the root user. If your user/group is allowed to use sudo (you can just try it or check the /etc/sudoers file) then you can run most commands like this: Code:
sudo command Code:
sudo apt-get update Code:
sudo passwd root |
For 'su -' enter root's passwd, not your own. Note that that is the default target user; you can 'su - some_user' to any user if you know their passwd.
http://linux.die.net/man/1/su You enter your own passwd for sudo access http://linux.die.net/man/8/sudo http://linux.die.net/man/5/sudoers http://www.gratisoft.us/sudo/man/sudoers.html suid, sgid are for permissions, not logging in as others setuid, setgid (aka suid, sgid) http://www.omnisecu.com/gnu-linux/re...and-setgid.htm |
All times are GMT -5. The time now is 11:21 AM. |