LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2009, 07:26 AM   #1
newk
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Rep: Reputation: 0
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!
 
Old 09-19-2009, 08:23 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,766
Blog Entries: 27

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
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!
 
Old 09-19-2009, 08:51 AM   #3
newk
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
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!
 
Old 09-19-2009, 09:06 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,766
Blog Entries: 27

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
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.
 
Old 09-19-2009, 09:18 AM   #5
newk
LQ Newbie
 
Registered: Sep 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accounts in SAMBA Hondro Linux - Software 2 08-01-2006 08:41 AM
samba accounts/ unix accounts Buzz88 Linux - Newbie 3 09-25-2005 08:16 AM
printing accounts & samba/cups mmcampbe Linux - Networking 0 09-22-2005 01:15 PM
Are Samba Accounts Necessary? estyne Linux - General 2 08-23-2005 04:27 PM
Samba and accounts eranj Linux - Networking 1 06-10-2005 12:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration