Click to See Complete Forum and Search --> : Samba user management


alexeis
07-20-2005, 02:46 AM
Hi,

I have problem that through samba from windows I put directories and files to SUSE Linux 9. It putted by nobody user and don't gives to other users to change this directories and files. The user on linux, that I work with it, is another then nobody. :confused:
So how can I set in samba that all users of linux can change directory and files that putted from windows through samba? :(

Thank's
Alexei :eek:

cybertron
07-21-2005, 01:07 PM
Try smbpasswd. It will let you add some more users so that you can login and have read/write access. There may be some other configuration too, but I'm not sure what the details of it are on SuSE. Basically you'll need to make sure that it isn't set to default every connection to nobody and make sure authenticated users have read/write access.

BTW, the How I Did It forum is for reporting success doing something. If you have questions the other forums (with the exception of /dev/random) would be the appropriate place for them. Maybe a mod could move it?

tcarradine
07-21-2005, 08:05 PM
call me a lamer who likes a gui but i would try webmin (http://www.webmin.com/). webmin makes server configuration super easy and is fully compatible with suse...

download the latest rpm and install... you will then be able to access your server through a web browser at http://127.0.0.1:10000 and you can login as root with your password.

goto the "Servers" tab and check the sambe configuration. you can force all files in a particular share to be owned by a certain user or just force a chmod 777 on all files that are created/modified...

hope this helps

Tim

flashingcurser
07-28-2005, 05:34 PM
Ummm...

Did anyone read his post?

He (if I'm not mistaken) is saying that when files/directories are put on the share by one user, those files/directories don't have the right permissions/group-user for others to be able to use.

alexeis--

Look in your samba.conf at the share and add:

public = yes
create mask = 0776
directory mask = 0776
force group = users

This is assuming that your users are in the "users" group-- everyone should have read/write access.

Remember to run--
testparm

Always helps me with spelling mistakes and such...

:)

dan

tcarradine
07-28-2005, 05:52 PM
Ummm...
Did anyone read his post?


yes actually, and if i'm not mistaken you just said the same thing i did only without the lamer gui part...

i use webmin for that exact purpose without having to know where in the smb.conf file your script modification needs to go... (such as in the defined share itself in this case?)

Tim

cybertron
07-28-2005, 06:25 PM
You're right, I misread the post.:)

In fairness to myself, the grammar is a bit shaky, but I'm guessing English is not his first language so that's perfectly understandable. Anyway, your suggestions look like they should solve the problem.

Oh yeah, and this was a post that had gone a day and a half without a response for a pretty simple question so at least I successfully bumped it so someone could answer it correctly.:p