Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-02-2002, 10:31 AM   #1
Registered: Feb 2001
Location: UK
Distribution: Ubuntu 9.10. Debian 5, RHEL 5.3
Posts: 66

Rep: Reputation: 15
Question Samba Permissions

I have come across a problem with Samba permissions that I can't get my head around. I have shared out the home directories on my Redhat 7.2 box to all Windows clients. Whenever I try to access the home directories on either a Windows 2000 or 98 client machine I cannot get access to the respected home driectories. I can gain access to all other shared files on the Linux box but not the home direcotries. Yet, when I logon on locally to the Linux box all users that I have created have access to their home directories. What am I doing wrong? Any help on this would be much appreciated. Thank you
Old 08-02-2002, 11:32 AM   #2
LQ Newbie
Registered: Jul 2002
Posts: 20

Rep: Reputation: 0
I am not sure I understand what do you want. But if you want to share the home directory of user to windows, here is what I did on Suse 8.0. Your linux should be the same for most parts.

Change your smb.conf file like this:

In [global] section:
workgroup = Your Window's machine workgroup name
security = user
encrypt passwords = Yes
smb passwd file = /etc/samba/smbpasswd

In [homes] section:
comment = Home Directoies
browsable = no
writeable = yes

I assume your sambe configuration is located on /etc/samba
You should find a text file called smbpasswd here, run the following command to add user
smbpasswd -a username

For simplify, I recommand keep the same user name and password for both linux and windows. The smbpasswd will ask the password you created for this username, type in your window's username password.

restart your samba by /etc/init.d/smb restart

Now, on your window machine, in the network, you should find //linux/username sharing, mapping that, you get your home directory on linux.

There is a very good free book about samba online here:

You can fix any samba problems you have after you read it.

Old 08-02-2002, 04:03 PM   #3
Registered: Jun 2002
Location: Memphis
Distribution: Suse 8.0 Pro
Posts: 45

Rep: Reputation: 15
I think that samba takes care of this by default, but I just setup mine like I wanted it to happen.

Here is my "home" share in samba:
comment = Home Directories
path = /home
read only = No
create mask = 0600
directory mask = 0700
browseable = No

Then under the global section I set the logon home = \\%L\home\%U

When my users logon to the samba domain they get there home directorys just fine.

You may just want to play around with it and see if you can get it to work the way you want it to.


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
Samba Permissions? ezra143 Linux - Networking 1 02-22-2005 02:26 PM
SAMBA says 'Samba Server is not accebile, you might have no permissions' Ahmad Gurchani Linux - General 1 01-01-2005 11:34 AM
Samba and permissions Phaethar Linux - Software 2 06-17-2004 09:03 AM
Samba and permissions ezra143 Linux - Software 8 11-05-2003 06:39 PM
Samba permissions djtsa Linux - Newbie 6 10-03-2003 08:22 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:12 PM.

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