Find the files you want to edit, make sure they have the group-write bit set (chmod g+w file), then put yourself in the group of those files.
Hi all,
I'm running Red Hat 7.2 and would like to setup my user account to have the same rights as the root account (not all, just some of the same rights). In particular, I would like to be able to edit files in the /usr directory. How would I go about doing this?
Thanks for the help.
Find the files you want to edit, make sure they have the group-write bit set (chmod g+w file), then put yourself in the group of those files.
Instead of that hassle, give your user rights to sudo in /etc/sudoers.
Just mirror what's above.
Then when you want to do something that requires root access, type sudo first. so to edit /etc/passwd,
[user@host etc]$ sudo passwd
and it will work for you.
umh, isn't that very similar to just su'ing when u need root access?link=board=general&num=1007076702&start=0# 2 date=11/30/01 at 23:08:40]
Instead of that hassle, give your user rights to sudo in /etc/sudoers.
Just mirror what's above.
Then when you want to do something that requires root access, type sudo first. so to edit /etc/passwd,
[user@host etc]$ sudo passwd
and it will work for you.
Bookmarks