LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   [SAMBA] Allow access to a directory only to a single user (https://www.linuxquestions.org/questions/linux-server-73/%5Bsamba%5D-allow-access-to-a-directory-only-to-a-single-user-817229/)

lucazorzi 06-30-2010 03:10 PM

[SAMBA] Allow access to a directory only to a single user
 
Hi everyone!
I have a file server on my network. It is accessed mainly by linux machines throught NFS, but sometimes I need to access it from windows, and I managed to get Samba up and running with only one share with no password, which is what I want.
My users have their "private" folders which are just chmodded 700, and under NFS it works fine, but on samba I get, of course, access denied.
How can I configure samba so that it asks a password to access those directory? They can become separate shares, and have their own username and passwords (not the ones in /etc/passwd in the server), I don't care.

Any advices?

Thanks in advance,
Luca

TB0ne 06-30-2010 04:00 PM

Quote:

Originally Posted by lucazorzi (Post 4019733)
Hi everyone!
I have a file server on my network. It is accessed mainly by linux machines throught NFS, but sometimes I need to access it from windows, and I managed to get Samba up and running with only one share with no password, which is what I want.
My users have their "private" folders which are just chmodded 700, and under NFS it works fine, but on samba I get, of course, access denied.
How can I configure samba so that it asks a password to access those directory? They can become separate shares, and have their own username and passwords (not the ones in /etc/passwd in the server), I don't care.

Any advices?

Thanks in advance,
Luca

This page:
http://www.linuxhomenetworking.com/w...r_Samba_Domain

has some ideas and examples. Search for "How To Add Users To Your Samba Domain".


All times are GMT -5. The time now is 09:10 PM.