Linux - NetworkingThis 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.
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.
I have a small peer-to-peer network that uses a Samba server to serve
files. There is little to no security with the file server. Currently connect to this server is a Win95 machine, 2 Win98SE machines, 2 Win2000PRO machines, and 3 WinXPPro machines. One of the Win2000 and one of the WinXP machines will only read files on the server as READ-ONLY if they have not created them. However, the files that they do create are READ-ONLY for all of the other machines. This is very annoying since it is defeating the purpose of sharing the files. Has anyone come accross this problem? Is this a Samba issue or a Windows issue?
I had a chance to implement those changes to the smb.conf. However, my problem remains unresolved. I now have an access denied when I go to save in a folder on the server that was created by another machine yesterday. But, I can save in a directory that was created a long time ago.
Try this smb.conf file just make sure you rename the other smb.conf file to something like
smb.bak or smb.conf.bak to have a backup copy of your origional file.
I took the your smb.conf file and made some changes to it and deleted some
config options that probably are not necessary but you may be wanting options
that I have not considered.
[global]
workgroup = WORKGROUP
server string = Samba Server
netbios name = Server
security = share
passwd program = /usr/bin/passwd %u
smb passwd file = /etc/samba/smbpasswd
hide dot files = no
pam password change = yes
obey pam restrictions = yes
unix password sync = Yes
encrypt passwords = yes
os level = 20
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
max log size = 0
log file = /var/log/samba/%m.log
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
printing = lprng
printcap name = /etc/printcap
load printers = yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
[servershare]
comment = FILE SERVER
path = /usr/servershare
directory mask = 0777
create mask = 0777
read only = no
Try this file you should be able to copy and paste the text directly from this document
I setup a Samba server which has about 20 people who access the same single share
and this is our smb.conf file
[global]
workgroup = drafting
server string = samba
log file = /var/log/samba/%m.log
max log size = 100
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
domain master = yes
preferred master = yes
password server = None
guest ok = yes
dns proxy = no
username map = /etc/samba/smbusers
#======== Share Definitions ==================
[homes]
comment = Home Directories
browseable = no
writeable = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
force group = drafting
[Inventor]
path = /Inventor
guest ok = yes
writeable = yes
create mask = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
force group = drafting
All of the users on the Linux system are part of the same group (drafting)
and really don't even use the [homes] share the Inventor share is the only
share need. All of the community files are stored in there.
I tried modifying the smb.conf as you suggested and still the same results. I have done more investigation into the server and I am finding that the problem is related to ownership of the files and directories. I am puzzled by this as the most recent 2 machines logon to the server and are registered as different users. When these machines create something then they, and they alone are the ones that can edit whatever was created. I have very limited knowledge of Linux, or for that matter, the nuances of networking. But, I have the impression that this is an issue with how windows is connecting to the server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.