LinuxQuestions.org
Review your favorite Linux distribution.
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-08-2010, 10:39 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Question Default owner for Samba shared dirs


Is there an option for default owner of files and directories in Samba-shared dirs?
 
Old 08-09-2010, 03:53 AM   #2
Demerzel
LQ Newbie
 
Registered: Aug 2010
Posts: 23

Rep: Reputation: 15
You can set user for everything and users for particular dirs. If shared directory have its own list of users, global one wont work... Files in directory will be created with rights of configured user.

It was long ago when I used samba so you have to ask google for syntax. If you are sharing directory between linux think about sshfs.
 
Old 08-09-2010, 01:02 PM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
The question was about files and directories that other people create remotely from Windows-computers on samba-shared dir. Like options "create mask" and "directory mask".
 
Old 08-09-2010, 01:09 PM   #4
Demerzel
LQ Newbie
 
Registered: Aug 2010
Posts: 23

Rep: Reputation: 15
http://lists.samba.org/archive/samba...st/050432.html
 
Old 08-09-2010, 01:27 PM   #5
suprstar
Member
 
Registered: Aug 2010
Location: Atlanta
Distribution: ubuntu, debian
Posts: 142
Blog Entries: 2

Rep: Reputation: 23
I've used force user and force group:

[yourshare]
comment = Some Samba share
path = /path/to/share
valid users = conrw suprstar dritte hsmith jjones
force user = dritte
force group = dritte
public = yes
writable = yes
printable = no
create mask = 0755
posix locking = no
 
1 members found this post helpful.
  


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
permissions and owner for shared drive goober3 Linux - Newbie 2 08-31-2008 10:45 PM
samba in shared mode and home dirs don't appear nass Slackware 0 06-14-2007 03:27 PM
Rsync changing owner of dirs Harlin Linux - Security 1 03-30-2007 01:11 PM
Owner of file in shared directory changing Gunbunny Linux - General 4 01-13-2006 07:00 PM
Locking dirs so only the owner can access them colabus Linux - Newbie 2 08-14-2004 11:57 PM

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

All times are GMT -5. The time now is 01:13 PM.

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