tgoetze
asked on
Permissions not working as expected
I want a user to be able to write into the /var/lock directory under Linux Red Hat 7.1.
foo> ls -l /var | grep lock
drwxrwxr-x 5 root uucp 4096 Jun 29 04:02 lock
Since the group for this directory is 'uucp' I added the user freddie to the 'uucp' group.
foo> grep uucp /etc/group
uucp:x:14:uucp,freddie
But I still can NOT write to that directory. (See below)
foo> touch /var/lock/foobar
touch: creating `/var/lock/foobar': Permission denied
Any ideas? I have the same problem with writing to the serial port /dev/ttyS0
foo> ls -l /var | grep lock
drwxrwxr-x 5 root uucp 4096 Jun 29 04:02 lock
Since the group for this directory is 'uucp' I added the user freddie to the 'uucp' group.
foo> grep uucp /etc/group
uucp:x:14:uucp,freddie
But I still can NOT write to that directory. (See below)
foo> touch /var/lock/foobar
touch: creating `/var/lock/foobar': Permission denied
Any ideas? I have the same problem with writing to the serial port /dev/ttyS0
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
While "id" and "newgrp" are interesting, what I really needed to do was login again (which I have a habit of not doing--thanks to vnc).
Thanks again!