Click to See Complete Forum and Search --> : Changing permissions


Krycheck
12-29-2001, 06:01 PM
I want my non-root login to have access to /mnt and /usr directories. I did change them before and I forgot how. I also made the mistake of changing another directory I can't remember that wouldn't let me start X. Don't know if changing /usr did this. There's anything in /usr that will do this if i change it?

slapNUT
12-29-2001, 06:21 PM
You could edit /etc/group and add your user to the root group.

Krycheck
12-29-2001, 06:53 PM
Like this?:

root:x:0:root,krycheck

Is there another way?

bdl
12-29-2001, 08:16 PM
If you want RW perms on different mountpoints or under /usr, I'd recommend adding a specific group, maybe something like 'admin' or 'staff' that has a relatively low GID (normally your system will already have these groups). Add your user to that group, and chown the specific directories you want access to. I'd stay away from giving yourself a 0 GID and you definitely don't want to give world RWX perms to directories.

slapNUT
12-29-2001, 08:36 PM
bdl's way is probably better. I agree about adding yourself to root group is dangerous, but most of GID 0 permissions are r-x which cuts down on the damage you can do a little bit.

Krycheck
12-29-2001, 10:28 PM
and I would do this how? :)