What am I doing wrong here? I need to be able to write to /var/cvs. This used to work before I moved these groups into an LDAP directory instead of /etc/group:
[scarolan@watcher:/var/cvs]$ touch test.txt touch: cannot touch `test.txt': Permission denied
[scarolan@watcher:/var/cvs]$ ls -ld drwxrwsr-x 4 cvs cvsgrp 4096 May 18 2008 .
[scarolan@watcher:/var/cvs]$ id scarolan uid=4002(scarolan) gid=4002(scarolan) groups=10000(operations),10001(cvsgrp),4002(scarolan)
On Thu, March 4, 2010 2:00 pm, Sean Carolan wrote:
What am I doing wrong here? I need to be able to write to /var/cvs. This used to work before I moved these groups into an LDAP directory instead of /etc/group:
[scarolan@watcher:/var/cvs]$ touch test.txt touch: cannot touch `test.txt': Permission denied
[scarolan@watcher:/var/cvs]$ ls -ld drwxrwsr-x 4 cvs cvsgrp 4096 May 18 2008 .
[scarolan@watcher:/var/cvs]$ id scarolan uid=4002(scarolan) gid=4002(scarolan) groups=10000(operations),10001(cvsgrp),4002(scarolan)
One possibility is that test.txt already exists in that directory and that the group cvsgrp does not have write permissions to it.
What is the output of 'ls -l /var/cvs/test.txt' ?
Marko
What is the output of 'ls -l /var/cvs/test.txt' ?
Marko
No, it doesn't exist. Oddly I have another user called "cfmaster" who can write files in there just fine:
[cfmaster@watcher cvs]$ pwd /var/cvs [cfmaster@watcher cvs]$ touch test.txt [cfmaster@watcher cvs]$ id cfmaster uid=5101(cfmaster) gid=10001(cvsgrp) groups=10001(cvsgrp) [cfmaster@watcher cvs]$ ls -l test.txt -rw-r--r-- 1 cfmaster cvsgrp 0 Mar 4 13:24 test.txt
On 4 March 2010 19:24, Sean Carolan scarolan@gmail.com wrote:
No, it doesn't exist. Oddly I have another user called "cfmaster" who can write files in there just fine:
When was the user scarolan added to the cvsgrp group? Have you logged out and back in since?
Ben
On Thu, Mar 4, 2010 at 2:00 PM, Sean Carolan scarolan@gmail.com wrote:
What am I doing wrong here? I need to be able to write to /var/cvs. This used to work before I moved these groups into an LDAP directory instead of /etc/group:
You might want to check that the cvsgrp group ID in /etc/group matches the one in LDAP.
On Thu, 2010-03-04 at 14:52 -0500, Kwan Lowe wrote:
On Thu, Mar 4, 2010 at 2:00 PM, Sean Carolan scarolan@gmail.com wrote:
What am I doing wrong here? I need to be able to write to /var/cvs. This used to work before I moved these groups into an LDAP directory instead of /etc/group:
You might want to check that the cvsgrp group ID in /etc/group matches the one in LDAP.
---- having a group with the same name in both /etc/group and LDAP groups would be the surest path to insanity. Likewise, for /etc/passwd and LDAP users.
Craig