PDA

View Full Version : sudo


g4macuser
03-14-2003, 03:03 AM
i am trying to remove a root owned file on my moms puter. she is just a "regular" user. i am the admin. i am connecting via TB2 and trying to remove the file. i am trying to use sudo rm -r filename however when it asks for a password it will say that my moms user name is not in the sudoers or something of that nature. anyone? maybe i will just try via ssh. can someone comment on the first option though. thanks.

wayneyoung
03-14-2003, 06:41 AM
You could add your Mom to the sudoers list, but the quickest thing would be to type su yourusername, then input your password. After that you can do anything [almost].

mervTormel
03-14-2003, 10:01 AM
% su g4macuser

isn't going to give you root power

% su root

requires the root password


suggestion: add an account that can admin the rig.

sudo has the group 'admin' in the /etc/sudoers file which give users in group admin the ability to sudo to be root.

Mikey-San
03-14-2003, 10:01 AM
There is no reason to add your mother to /etc/sudoers, most likely. (By default, admin-level users are given access to sudo.)

Log in as an administrator and sudo rm the file to the great bit bucket in the sky.


-/-

g4macuser
03-14-2003, 11:37 AM
thanks everyone

wayneyoung
03-14-2003, 11:52 AM
OOPS! I knew that, don't know why I brain-dumped and typed it. Thanks Merv for waking me up!