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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-15-2008, 10:10 AM
|
#1
|
|
Member
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111
Rep:
|
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
|
|
|
|
12-15-2008, 10:34 AM
|
#2
|
|
Senior Member
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,014
Rep: 
|
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
|
|
|
|
12-15-2008, 10:41 AM
|
#3
|
|
Member
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Rep:
|
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 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.
|
|
|
|
12-15-2008, 10:43 AM
|
#4
|
|
Member
Registered: Jul 2008
Location: Bloomington, IN
Distribution: Ubuntu/Debian
Posts: 51
Rep:
|
Just saw Guttorm's reply right after I posted. I did not see that...duh. You can also run to make sure your edits are good on your smb.conf file.
|
|
|
|
12-15-2008, 11:02 AM
|
#5
|
|
Member
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111
Original Poster
Rep:
|
Thank you guys, I will check the things you mention here asap.
|
|
|
|
12-17-2008, 10:55 AM
|
#6
|
|
Member
Registered: Jan 2006
Location: Belgique
Distribution: Gentoo, Debian, Redhat, Centos, (x)Ubuntu
Posts: 111
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|