You are not logged in.
Hi
I'm pretty much still a newbie when it comes to Linux, and I have some serious problems understanding permissions in general. Most of the time I get it to work, but now I have no clue what to do. I run Archlinux on both my desktop, and on my fileserver.
So, I have a fileserver, on which I have a raid partition, that contains stuff I want to share with samba. There were never really any problems, since it was just shared locally, so security wasn't top priority. The mount was owned by my user. But now I've tried setting up an sftp-server, that's supposed to share the same folders and files by chrooting the users to it. According to every guide I've read, the folder must be owned by root in order for sftp to actually work. So I changed the owner of /media/raid (where it's mounted) to root and groupowner to "sftpusers". Then I added my user to group "sftpusers", and changed the permissions of /media/raid to 750. I have no problems accessing this from another computer, not on my local network, using filezilla. So the SFTP works.
But, now I cannot access my share locally from my desktop. I don't have permission apparently. But this has to be possible, right? I'm just doing something wrong...
Any and all help is very much appreciated.
Thanks
Offline
Hi
But now I've tried setting up an sftp-server, that's supposed to share the same folders and files by chrooting the users to it. According to every guide I've read, the folder must be owned by root in order for sftp to actually work.
Can you provide a link, I have never had to do such a thing, but perhaps I am not understanding you completely.
To which groups does your local user belong?
What are the owner and group attributes of the files and directories you are trying to share?
I think I understand you added the local user to sftpusers. Did you log out and then log back in afterwards? It only picks up the new groups at login.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Hi
Thanks for trying to help me ![]()
My problem has changed some. I'm dualbooting my desktop with windows, and when I tried accessing the share on my fileserver from windows, it worked without any problems. My raspberry pi, running xbmc, also works. And now suddenly, my shared folder can once again be mounted in linux on my desktop. However, I cannot access it, because I apparently lack permission (no such problem on windows or raspberry pi). I can run "ls" on it as superuser though. Any ideas?
About the "must be owned by root"-issue: https://wiki.archlinux.org/index.php/SFTP-chroot
It says so at the bottom of that page.
Offline