LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-15-2008, 10:10 AM   #1
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Rep: Reputation: 27
creating files from windows on a samba share gives read-only permissions.


Hello,

My samba server is acting weird, the home folders are samba shares on a linux server. They are accessed from windows xp clients.

When a client creates a file (doc, xls, ...) on his homefolder, it gets r--r--r-- rights with the correct ownership <username> usersgroup

When I assume the identity of that user and touch a new file in the directory, I get the normal permissions rw-r--r-- according to my umask settings in the /etc/profile configuration.

I can find no changes to umask anywhere in the bash_profile or /etc/bash.bashrc or bashrc records anywhere system-wide or user-specific.

In the /etc/smb.conf file, I put the following in the homes directive:
create mask 0755
There is already browsable = no; writable = yes for [homes]

In the global part, nothing file-permission related explains this behavior.

Samba was restarted after adding the "create mask 0755" in the config.

Does anybody know where else to look?

thanks,
Lieven
 
Old 12-15-2008, 10:34 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,121

Rep: Reputation: 218Reputation: 218Reputation: 218
Hi

I have this in my Samba configuration file:

create mask = 0666
directory mask = 0777

So it could be it's just the missing = character. If you want others can read, but only owner can write, it should be:


create mask = 0644
directory mask = 0755
 
Old 12-15-2008, 10:41 AM   #3
PresGas
Member
 
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Blog Entries: 5

Rep: Reputation: 18
Depending on how much trafic you get on your samba server, you could modify the "log level" directive in your smb.conf file and have a user create a new file and see what your logs say
Code:
log level = 3
should suffice.

I also stumbled on the "force create mode"/"force directory mode". Now, if I were you, I would thoroughly read the smb.conf man pages to see if there are other directives that would be better, but that may be another option.
 
Old 12-15-2008, 10:43 AM   #4
PresGas
Member
 
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Blog Entries: 5

Rep: Reputation: 18
Just saw Guttorm's reply right after I posted. I did not see that...duh. You can also run
Code:
testparm
to make sure your edits are good on your smb.conf file.
 
Old 12-15-2008, 11:02 AM   #5
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Original Poster
Rep: Reputation: 27
Thank you guys, I will check the things you mention here asap.
 
Old 12-17-2008, 10:55 AM   #6
lievendp
Member
 
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111

Original Poster
Rep: Reputation: 27
testparm gives an "all-ok" message.

The logging is put on 3 and allready I see things like:

"timeout_processing: End of file from client"

I'll check further what goes into the logs now.

cheers.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
debian joined AD fine, want a samba share with windows permissions k0r54 Linux - Software 3 12-28-2007 03:44 AM
Using a Windows XP client to set permissions on a Samba share Wendellz Linux - Software 2 02-09-2007 08:01 AM
Samba 3.x file permissions on Windows share lefty.crupps Linux - Software 0 09-07-2006 10:08 AM
can see but cant read files on windows share, help a newb out! eonicrush Linux - Networking 2 04-11-2005 03:03 PM
files&folders permissions under SAMBA share shani Linux - Software 2 11-20-2003 11:48 AM


All times are GMT -5. The time now is 09:43 AM.

Main Menu
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