|
-
November 15th, 2008, 05:12 PM
#1
Junior Member
Samba File Server
I am trying to set up a file server with Samba, but I simply cannot get access to any of the folders, they show up in network neighbourhood, but can't be opened. Can anyone tell me where I have gone wrong?
Hopefully all the info you need is below...
I need 2 users, with 3 folders
Folder 1: company
Folder 2: master
Folder 3: misc
User 1: everyone (with access to "company" and "misc")
User 2: master (with access to "company", "master" and "misc")
I have done the following (as root)
#useradd everyone
#useradd master
#passwd everyone
#passwd master
#smbpasswd -a everyone
#smbpasswd -a master
#smbpasswd -e everyone
#smbpasswd -e master
#md /shares/company
#md /shares/master
#md /shares/misc
#chown master /shares
#chown master /shares/company
#chown master /shares/master
#chown master /shares/misc
#chmod 666 /shares
#chmod 666 /shares/company
#chmod 600 /shares/master
#chmod 666 /shares/misc
my /etc/samba/smb.conf is as follows:
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2008-06-06
[global]
workgroup = WORKGROUP
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = No
domain master = No
security = user
netbios name = nastorage
passdb backend = smbpasswd
[company]
comment = Company
inherit acls = Yes
path = /shares/company
read only = No
[master]
comment = Master
inherit acls = Yes
path = /shares/master
read only = No
[misc]
comment = Misc
inherit acls = Yes
path = /shares/misc
read only = No
-
November 16th, 2008, 10:55 AM
#2
Directories in *nix need the x (execute) bit set or users won't be able to browse it. Change the 6s in your chmods to 7s
Oliver's Law:
Experience is something you don't get until just after you need it.
-
November 18th, 2008, 10:41 AM
#3
Junior Member
Ah I never knew that, thought it would be something relatively simple for someone with the know how. Right that is working great now, thanks! Still one issue though... I have 414GB of free space on the drives (as shown on the "start" menu)... but my windows PC says the server has only 15.5GB free, according to YaST I have no quota's set, any ideas?
-
November 18th, 2008, 01:27 PM
#4
Junior Member
Doh, My bad, I have been used to ubuntu and until I ran "df -h" I wasn't aware SuSE had partitioned my drive and put all the space in /home and only left 20GB for /
-
November 18th, 2008, 02:24 PM
#5
That'll help 
And just a note, look into those chmod 777's. I think that's a bit too permissive as it means they're world writable.
Use groups to define the correct permissions. Users can be members of multiple groups.
Oliver's Law:
Experience is something you don't get until just after you need it.
Similar Threads
-
By cool_boy in forum General Computer Discussions
Replies: 3
Last Post: June 29th, 2006, 02:45 AM
-
By gore in forum Miscellaneous Security Discussions
Replies: 11
Last Post: June 13th, 2006, 04:06 AM
-
By gore in forum Other Tutorials Forum
Replies: 0
Last Post: October 11th, 2004, 07:07 PM
-
By Lansing_Banda in forum Network Security Discussions
Replies: 2
Last Post: October 5th, 2003, 02:14 AM
-
By Noble Hamlet in forum AntiOnline's General Chit Chat
Replies: 1100
Last Post: March 17th, 2002, 09:38 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|