LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba & system accounts (https://www.linuxquestions.org/questions/linux-newbie-8/samba-and-system-accounts-756370/)

newk 09-19-2009 07:26 AM

Samba & system accounts
 
Ubuntu 8.04 server + Samba 3.x + Webmin

After I have shared home directories I can access not only users' home directories but also \\ubuntuserver\bind, \\ubuntuserver\dovecot.....
and other homes of system accounts. How can I disable this - through file permissions only or I can also adjust Samba for sharing only users' homes?

When a user tries to connect to server's shares (Win XP client) he or she can see not only this user's home directory but also the folder with the name homes (the contents of the homes folder and a user's home directory is the same). How to unvisible homes folder and retain only a logged user's folder?

Thanks in advance for your answers!

onebuck 09-19-2009 08:23 AM

Hi,

Welcome to LQ!

Permissions will prevent users from drifting into some other space.

Quote:

default setting for 'smb.conf-sample'
[homes]
comment = Home Directories
browseable = no
writable = yes

Quote:

excerpt from smb.conf @SMB-HOWTO;
[homes]
comment = Home Directories
browseable = no
read only = no
create mode = 0750

I suggest that you look at SMB-HOWTO.

These links and others can be found at 'Slackware-Links'. More than just SlackwareŽ links!

newk 09-19-2009 08:51 AM

Thank you onebuck for your greeting and answer.

Of course I'll go to howtoes, but just for now one more question.

With samba conf - ok, due to you that's clear for me now (I do remember browseable parameter but didn't have time to experiment with it).

But, regarding permissions.... Do you mean that for them not to be accessible (in the way like \\server\account), I need to change permissions for all the folders that are homes in /etc/passwd (I mean only system accounts like bind, dovecot etc).

Once again thanks for future answers!

onebuck 09-19-2009 09:06 AM

Hi,

System wide permission will restrict your users from performing actions that they don't have permission to perform. Your question was relative to 'samba'. You just need to worry about that environment for the user access. Read the HOWTO and things should be clear.

newk 09-19-2009 09:18 AM

Ok, Thanks!


All times are GMT -5. The time now is 08:14 PM.