Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User's .ssh directory owned by root #838

Closed
nikarul opened this issue Aug 27, 2015 · 1 comment
Closed

User's .ssh directory owned by root #838

nikarul opened this issue Aug 27, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@nikarul
Copy link

nikarul commented Aug 27, 2015

I was having some trouble creating a user account in RockStor (3.8-6) through the web interface when I tried to specify an SSH key. I was able to create the account without the key, but then got the same error when I tried to edit the account and add the key. I went to the user's home via the shell and it shows that .ssh is owned by root:root. I manually changed the ownership and tried the web interface again, and it gave the same error but actually set the key. ~/.ssh/authorized_users seems to have the correct permissions as well. The web error is:

Error running a command. cmd = ['/usr/bin/chown', u'link:link', u'/home/link/.ssh/authorized_keys']. rc = 1. stdout = ['']. stderr = ['/usr/bin/chown: invalid group: \xe2\x80\x98link:link\xe2\x80\x99', '']

Note that the user had previously existed with the group 'link', but I deleted and remade it with the group 'users' instead. May be related.

@schakrava
Copy link
Member

Thanks @nikarul for filing this issue. I've labeled it critical, so will get to this asap.

@schakrava schakrava added this to the Toulumne milestone Aug 29, 2015
@schakrava schakrava self-assigned this Aug 29, 2015
schakrava added a commit to schakrava/rockstor-core that referenced this issue Aug 31, 2015
schakrava added a commit to schakrava/rockstor-core that referenced this issue Aug 31, 2015
non root users can login using an sftp client only when there's a Share
owned by them and it's exported via sftp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants