Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting up a simple file server with Samba 3.0 on Suse 9 enterprise 1

Status
Not open for further replies.

alanpaterson

IS-IT--Management
May 4, 2000
53
GB
Hi all,

I have read soo much material, and now doubt I will continue to read it.

I am trying to set up a simple file server with Suse Linux 9 Enterprise and Samba 3, I'm at the initial testing stages right now and I'm trying out making users and folders etc.

I have 3 users so far on my system, the all have full access to the samba share, but I have set permisions on the folder they access using chmod.

The problem is when any of the group write a file into that folder from windows xp, samba or linux assigns these user rights:

-rwxr--r-- 1 jbennett engdo 7168 Jan 17 14:13 Thumbs.db
-rwxr--r-- 1 jbennett engdo 13843170 Jan 14 13:44 Tony 002.avi

The user that created gets full access but all others get only read. How can I fix this so that others within the users group or otherwise get at lease write access?

Incidentally the folder I created has full rights to everyone chmod -R 777 /folder, but users only have access to write to files that *they* create?

I have done a search on the forum and found nothing, and I have googled but again nothing, if any of you could point me to a good source of info I would be filled with much happiness and excitement.

Alan
 
I'm googling and reading now -- looks as though your right Ken.
 
OK,

Just in case anyone else has the same problem, I found that if you set up Samba, that setting a umask at the console will work but not for Samba. If you have windows machines mapped to your samba share you have to add these lines to your shares:

create mask =
directory mask =
inherit permissions =

like below:

[dpsl]
comment = "The two 80GB SATA drive as one volume"
guest ok = yes
path = /dpsl/
browseable = yes
writeable = yes
create mask = 02775
directory mask = 02775
inherit permissions = Yes

This worked for me at least. Hope it helps others.

Alan
 
This is a setup without username or password, with rw privileges on everything.

Mind you, this setup is for a very ghetto file server for me and my roomies, that shares /shares on the machine but it does the job just right. Everyone accessing this is considered to be user "nobody" with group "nobody".

Might be ghetto, but it works, so might as well include it for people that would be interested in a "userless" setup.



(This is my smb.conf . Machine serving this has the hostname sumo , the windows workgroup was evilsmileyland.)
Code:
[global]
workgroup = EVILSMILEYLAND
netbios name = SUMO
security = share

[wasteland]
path = /shares
comment = The shared files for the network
guest ok = yes
read only = no

_____________________________
when someone asks for your username and password, and much *clickely clickely* is happening in the background, know enough that you should be worried.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top