You are not logged in.
i just set up a couple of samba shares and i am looking for advice on whether there are any downsides (security risks for instance) in relation to my setup.
I wanted to create a couple of samba shares in my dir /home/captn/ and with samba security = user. Shares have to be accessible (read only) to all, however individual shares only to a specific user(s). Guest access didn't work for whatever reason (i've been trying for quite some time, nothing works, even "nobody" didn't do the trick). The only user and passwd that works is captn and the sambapasswd (doesn't come as a surprise since no other users should/can have access to my home directory, where the shared dirs were set up). Long story short, i moved my shared dirs (e.g. downloads) from /home/captn/downloads one dir higher, i.e. /home/downloads. This way i can create individual users and their respective passwds with each share. No my question; are there any downsides to moving these dirs (originally belonging to captn) to /home. This is simply for smb purposes, i am the only user on my system.
Thx for any insightful thoughts etc.
Offline
nevermind; i just decided to resize my way too big /home partition, that's probably the easiest solution
Well, had to learn the hard way that if your samba shares are on your /home partition forget about setting up different samba users to log on to these shares ![]()
cheers
Offline
The acl package allows to maintain multiple permissions beyond the original POSIX standard.
You could put users that need read-only into your smb.conf, and add them to the user group pertaining to the user. You should be able to have read-only control at the smb.conf/share level, regardless of what permissions are available. I would suggest a group home directory to keep separate from your directory. You will have to create users that will belong to the group so that they can access the share the way samba is intended to work. I think they have to have a real user (on the system) that matches up with the samba username/password. This allows for a user to be totally different than the ones actually on the system through ID mapping. Samba prefers that it pertains to the actual user on the system.
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
thx for your suggestion nomorewindows (btw i have to use it in a VM cos of work
)! I already started with the resizing option but i will keep your solution in mind. If i didn't resize i think that would be the way to go. Problem is actually my partitions in the first place...i gave home 200GB which is completely moronic imo. So shrinking /home and then create a separate partition for all data (pics, movies etc) is probably better in the long run. That way i can set up smb.conf in no time and don't have to worry about guest access, creating users that belong to my user etc.
cheers & thx for your reply
Offline