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.
When a user copies a file to the share, or creates a new file or directory on the share, the system sets the user.group of the new file to match the user. Look into using the various "force"s in the share...
"force user = whomever" forces any new file to be assigned to the user whomever.
"force group = whichever" does the same for the group.
"force create mode = ####" sets the permissions for any new file on the share.
"force directory mode = ####" does the same for any new directories on the share.
PS -- Don't cross-post the same question to several different forums... It's against the rules, and verboten. Some of the mods tend to get a bit upset about it.
Last edited by ranger_nemo; 07-01-2004 at 04:30 PM.
hi there, i have a few questions about this answer.
Where do i write those lines???
Is that whomever and whichever the names of my user and group or should i write the words whomever ans whichever?
Thank you
They go in the /etc/samba/smb.conf, under the share definition that you want them to apply to. If you have a share called wenus, and want all the files created in it to belong to the user bob, you would have something like...
Code:
[wenus]
comment = Weekly Estimated Network Usage Sheets
path = /home/data/wenus
writeable = yes
browseable = yes
guest ok = no
force user = bob
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.