Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-26-2005, 02:54 PM
|
#1
|
LQ Newbie
Registered: Apr 2005
Distribution: Redhat 9
Posts: 10
Rep:
|
read-only access after a few days
I have a Samba server running on RH 9, and everything is fine except for this one thing. After a few days, the windows clients can only open their files in read-only mode. I have a public shared folder, with each users subfolder, and all belong to group root, and all the users belong to group root.
If I go in and do a chgrp to root for the public folder, and chmod 777, all the files are accessible for a few days, then slowly the problem re-appears.
Any ideas? and do I need to give more info? Thanks!!
Jack O'Brien
|
|
|
07-26-2005, 03:53 PM
|
#2
|
Member
Registered: Jun 2005
Location: Bosie, ID
Distribution: Fedora Core 4, Kurumin,BackTrack, Slackware 10.2, IPCop
Posts: 105
Rep:
|
One option would be: In the smb.conf file, add a line like this: force user = {the user who owns the file}.
Esentially what you're telling Samba is, "No matter who connects, act as though they are {}." So, if you're sharing a folder that is owned by, let's call him Joe Blow, then Samba will act as though Joe signed in, authenticated and is currently accessing the share.
I don't advise you do this with root (as that is always a bad idea--security wise). But, if Root owns the folder, either change it, or go with it.
|
|
|
07-26-2005, 08:09 PM
|
#3
|
Member
Registered: Jul 2005
Distribution: Debian, Gentoo, self-built [not LFS]
Posts: 109
Rep:
|
Make sure you set the create mode to something like 666. In Samba, you would add something like this to the share's definition:
create mask = 0666
directory mask = 0777
See if that does the trick.
|
|
|
07-27-2005, 08:50 AM
|
#4
|
LQ Newbie
Registered: Apr 2005
Distribution: Redhat 9
Posts: 10
Original Poster
Rep:
|
Quote:
Originally posted by issinho
One option would be: In the smb.conf file, add a line like this: force user = {the user who owns the file}.
Esentially what you're telling Samba is, "No matter who connects, act as though they are {}." So, if you're sharing a folder that is owned by, let's call him Joe Blow, then Samba will act as though Joe signed in, authenticated and is currently accessing the share.
I don't advise you do this with root (as that is always a bad idea--security wise). But, if Root owns the folder, either change it, or go with it.
|
Thanks! Point well taken about Root, but I will give this a try.
Jack
|
|
|
07-27-2005, 08:52 AM
|
#5
|
LQ Newbie
Registered: Apr 2005
Distribution: Redhat 9
Posts: 10
Original Poster
Rep:
|
Quote:
Originally posted by mpeg4codec
Make sure you set the create mode to something like 666. In Samba, you would add something like this to the share's definition:
create mask = 0666
directory mask = 0777
See if that does the trick.
|
Ahhh, I will have to check this. Thanks so much!
Jack
|
|
|
All times are GMT -5. The time now is 04:15 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
|
|