Linux - SoftwareThis 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
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.
We've set up some simple, low-security samba shares using a dedicated file server. I can modify the contents of the directories from windows, but not from linux (unless I'm logged in as root). I'm sure it has something to do with ownership or permissions. Here's part of samba.conf:
[bus_files]
comment = business files
path = /data/bus
read only = no
force user = bus
force group = bus
browseable = yes
guest ok = yes
nt acl support = no
Before this setup, we were sharing all the business files off the fastest desktop we had. Now we've at least got a file server. As we become more adept in working with Linux, we'll increase security. Right now, though, we just need it to work; our business is suffering. Any help is appreciated. Thanks.
After doing some more looking around, I found out I can modify them if I access them by browsing to them. I can't modify anything in them if I access them by using the mount points created in fstab.
When your accessing the files over the network samba is the one who is controlling the permissions and access, sort of given root previliges over the shares defined in the smb.conf. When you access the same folders from being logged in locally or through a console like ssh, you will then be controlled by the unix permissions, completely removed from samba.
Also, the owner/group is bus. Is this what you're logging into Samba as? Your security is set to by the share's permissions on the files, so that's something to take a look at, so in your fstab entry, you need "username=bus,password=(mypasswordhere)"
I thought that's what the forceuser = bus and forcegroup = bus options were for, to make sure no problems like this came up. Is there another option we can add to samba.conf so that we can avoid putting a password in fstab?
I thought that's what the forceuser = bus and forcegroup = bus options were for, to make sure no problems like this came up. Is there another option we can add to samba.conf so that we can avoid putting a password in fstab?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.