Help me!! sub folder in samba
hi all I'm new to linux and samba but my new job is based on samba and i need to set the share in my network but I'm suck at one point
that is we have many users and most users can go in most file and in that file there are few sub folders and only handful of the can enter that sub folder but I don't know to to do that please help me any small hints or detail will be most helpful thanks:confused::banghead::scratch::cry: |
You might want to study www.samba.org; particularly the "By-Example" section, which walks you through several graduated versions of samba share scenarios.
You'll need to post some details of your setup for more specific help; i.e your smb.conf file, the output of testparm, whether smbclient -L works for your users... etc. |
just for starters i'm trying to test it on 3 users a, b, c and looking for a way for locking u ser c in some folder if this works then i'll go on the full project please help
# Samba config file created using SWAT # from 172.16.244.87 (172.16.244.87) # Date: 2010/06/22 18:13:38 [global] workgroup = MYGROUP server string = Anungoo Server log file = /var/log/samba/log.%m max log size = 50 socket options = SO_RCVBUF=8192 SO_SNDBUF=8192 logon script = %U.bat logon path = \\%L\Profiles\%U domain logons = Yes os level = 33 domain master = Yes inherit acls = Yes map acl inherit = Yes [share] comment = anungoo shared folder path = /anungoo/ valid users = a c b admin users = a guest ok = Yes hide unreadable = Yes set directory = Yes fake directory create times = Yes [private] comment = private path = /anungoo/shared/private valid users = b invalid user = a c admin users = a read list = a b write list = b read only = No browseable = No available = No [msu] comment = msu path = /anungoo/share/private/msu invalid users = c b valid users = a admin users = a read list = a b write list = a read only = No browseable = No |
So what, exactly, is the error that you get, and when do you get it, exactly...
I would assume in subfolder [msu], for example that you don't want "invalid user = b" at the same time as you have "read list = b"; the same goes with [private] and user a, that doesn't seem consistent, or I'm not undestanding what it is that you're trying to accomplish. |
thanks
hi again i think i found the solution for my problem but thanks
and if there are any of you need to know what I've done please don't hesitate to ask me about it. |
OK, I'll ask...
What did you do? |
well i used the : chmod command to change the permission for that folder example: chmod 733 /tmp/test
also: chmod o+rwx test this make the test folder read,write,execute only for the OWNER of that folder then i used the chown command to change the ownership of that folder as below: chown wok tmp/test note:"wok" is a user and there you have it. so the wok user can have a full access to test folder while no other users can access it it was this simple and i've been beating around the bush for so long funny aint it? |
All times are GMT -5. The time now is 02:42 PM. |