Last modified: 2012-06-26 21:25:29 UTC
I am trying to give SVN commit access to Krenair, who already had an LDAP listing (made via labsconsole). I tried to add his ssh key on formey and got this error: sumanah@formey:~$ sudo modify-ldap-user --addkeys=/tmp/krenair.txt krenair There was a general error, this is unexpected; see traceback. Traceback (most recent call last): File "/usr/local/sbin/modify-ldap-user", line 110, in main hdm.writeKeys(username, NewPosixData['sshPublicKey']) File "/usr/local/lib/user-management/homedirectorymanager.py", line 238, in writeKeys self.writeFile(self.basedir + user + '/.ssh/authorized_keys', "\n".join(keys) + "\n") File "/usr/local/lib/user-management/homedirectorymanager.py", line 408, in writeFile f = open(path, 'w') IOError: [Errno 2] No such file or directory: '/home/krenair/.ssh/authorized_keys'
Did you run add-ldap-user? Because you can't modify a user who doesn't exist.
I was sort of under the impression that I already had an LDAP account through labsconsole and Gerrit.
Shouldn't you just set your key via labsconsole then? The key shouldn't need to be added by Sumana or Ryan or myself. I'm willing to bet the problem isn't the key, but svn authz. Was Krenair added to the mediawiki group?
According to bug 32225 I can't change my keys for SVN from labsconsole. The error I've been getting when trying to use SVN is "Permission denied (publickey)."
Yes, this account is already in LDAP, as I confirmed via ldaplist -l passwd krenair And it's authorized for the mediawiki group, since I successfully ran svn-group add krenair mediawiki and I checked the authz file and krenair is in the mediawiki group.
I created it manually. add-ldap-user should have created the home directory. Can we get rid of svn already? :(
Now when trying to commit my userinfo file: svn: Can't open file '/svnroot/mediawiki/db/txn-current-lock': Permission denied
(In reply to comment #7) > Now when trying to commit my userinfo file: > svn: Can't open file '/svnroot/mediawiki/db/txn-current-lock': Permission > denied I made USERINFO read-only since I've been cleaning up the history to migrate it to git.