LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2007, 06:47 PM   #1
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Rep: Reputation: 31
Samba Write Permissions


What I am trying to do is create a universal server storing everyone's home directories using Samba.

So I have 3 Fedora Core 6 computers setup:

1 Samba PDC with IDMAP
1 Samba NAS server with home directories on it
1 Samba workstation

If I mount the [homedirs] share on the NAS server from the workstation, all of the permissions lineup because of IDMAP. That was quite a struggle to do, but I did it. Now, the problem is that every time the workstation makes a write or read request, it does it under the user it was mounted using (winlogonguest). Is there a way to make it write to the file using the current user's permissions?

Here is the smb.conf entry on the NAS server:

[homedirs]
path = /nas/homedirs
browsable = no
writable = yes
read only = no
public = yes
printable = no
guest ok = yes
guest only = no

Here is the fstab entry in the workstation to mount the share:

//192.168.1.7/homedirs /home cifs rw,setuids,guest,user=winlogonguest 0 0

it mounts without a hitch...now its just those permissions...
 
Old 05-12-2007, 07:43 PM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
I believe your looking for this:

Code:
[homedirs]
your settings here
create mask = 0600
Only the owner is read/write for files created.
 
Old 05-13-2007, 12:49 PM   #3
Cottsay
Member
 
Registered: Feb 2004
Location: Chaska, MN
Distribution: Fedora
Posts: 195

Original Poster
Rep: Reputation: 31
The trick is, that all of the read/write permissions are that of the user that mounted it initially...not the user that is using it. (ex. you mount it using a guest account, if you write a new file, it is created with owner "guest") All of the permissions APPEAR correct using ls -al, but upon attempting to list a directory or access a file, it uses the "guest" permissions.
 
  


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 directory permissions - can't write from XP ajkrishock Linux - Networking 2 10-16-2005 12:56 PM
How do I mount a samba directory with write permissions? xerogravity Linux - Newbie 7 12-05-2004 01:43 PM
SAMBA Read/Write permissions Tenover Linux - Newbie 5 11-04-2003 12:45 PM
still problems with write permissions samba share pepijn Linux - Software 1 10-14-2003 04:38 AM
Samba write permissions mrsolo Linux - General 2 08-24-2003 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:59 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