Click to See Complete Forum and Search --> : Permissions
chadm1967
11-29-2001, 07:30 PM
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.
[ 29 November 2001: Message edited by: chadm1967 ]
uriah.k
11-29-2001, 07:45 PM
I think the command would be: (as root) chown -r username /usr
The -r is for recursive(I have never used that switch before though, so don't know if it works) That command would change everything in the /usr dir to be owned by your username/account. Then after you would
have to do a chgrp -r username /usr
That should also change the owner/group of the dir /usr it's self, but if it doesn't
just do a seperate command for it.
That should do it. You can still use/move/modify anything in that dir as root of course.
AdaHacker
11-29-2001, 08:12 PM
Strictly speaking, you don't need to change both the group and owner. Either one will be sufficient if you give yourself the right permissions. You could just leave both the same, do a 'chmod -R 775 /usr' and add yourself to the 'root' group as well. That would probably be a nicer solution.
I'll let someone else argue the point that there's little real reason to be editing anything in /usr on a regular basis and that this probalby isn't a good idea.
[ 29 November 2001: Message edited by: AdaHacker ]