LinuxQuestions.org
Visit Jeremy's Blog.
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 07-01-2004, 04:34 PM   #1
albracco
Member
 
Registered: Jan 2003
Posts: 48

Rep: Reputation: 15
Folder permissions problem with Samba


Have this Samba problem on 3 separate Red Hat 9.0 servers.

Create a public directory with all permissions open. Have problems when things get added to this public share:

1) User copies a folder from his local Windows PC to the share. Only that user can modify a file. Other users can read, but not write to the file.

2) User creates a new folder on the public share and copies some files into it. All users can read/write the files.

3) User creates a new empty folder on the public share. Only that user can create a file in that share, other users can not.

Is this a Samba or a umask problem?

TIA,

Al
 
Old 07-01-2004, 05:25 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
When a user copies a file to the share, or creates a new file or directory on the share, the system sets the user.group of the new file to match the user. Look into using the various "force"s in the share...

"force user = whomever" forces any new file to be assigned to the user whomever.
"force group = whichever" does the same for the group.
"force create mode = ####" sets the permissions for any new file on the share.
"force directory mode = ####" does the same for any new directories on the share.

PS -- Don't cross-post the same question to several different forums... It's against the rules, and verboten. Some of the mods tend to get a bit upset about it.

Last edited by ranger_nemo; 07-01-2004 at 05:30 PM.
 
Old 08-19-2004, 11:08 AM   #3
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Rep: Reputation: 30
a few questions

hi there, i have a few questions about this answer.
Where do i write those lines???
Is that whomever and whichever the names of my user and group or should i write the words whomever ans whichever?
Thank you
 
Old 08-19-2004, 12:23 PM   #4
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
They go in the /etc/samba/smb.conf, under the share definition that you want them to apply to. If you have a share called wenus, and want all the files created in it to belong to the user bob, you would have something like...
Code:
[wenus]
        comment = Weekly Estimated Network Usage Sheets
        path = /home/data/wenus
        writeable = yes
        browseable = yes
        guest ok = no
        force user = bob
 
Old 08-24-2004, 11:09 PM   #5
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Rep: Reputation: 30
thanks ranger_nemo, it was very useful your answer. it worked
 
  


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
Samba Public Folder Permissions decoone Linux - Networking 4 09-26-2007 01:42 AM
Samba Public shared Folder will not hold permissions xzerros Linux - Networking 12 09-26-2005 10:25 AM
samba: mount-folder in client gives only root permissions mvo Linux - Newbie 3 09-16-2005 12:39 PM
how to setup folder permissions for guest user with samba? wza Linux - Networking 0 07-08-2004 10:26 AM
samba folder permissions problem albracco Linux - Software 4 07-02-2004 08:01 PM


All times are GMT -5. The time now is 02:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration