LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-02-2002, 09:31 AM   #1
ppuddick
Member
 
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, 10:32 AM   #2
java8964
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:
http://www.oreilly.com/catalog/samba...ook/index.html

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

Regards
 
Old 08-02-2002, 03:03 PM   #3
krunkwick
Member
 
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:
[home]
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:23 AM.

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
Open Source Consulting | Domain Registration