[clug] Samba help
astro_mikel at hotmail.com
Wed Mar 28 01:45:57 GMT 2007
This isn't really a fix more of a workaround.....but.
Can't u just make a user that doesn't have write access to the share, use a
login script (or however ur doing it) to connect to the share with those
credentials behind the scenes.
Then create a user with write access and let them know user/pass or make a
different login script passing those details?
Just a thought....make not be what ur after though.
>From: Chris Smart <chris at kororaa.org>
>To: linux at lists.samba.org
>Subject: [clug] Samba help
>Date: Wed, 28 Mar 2007 01:15:09 +0000
>Can someone help me a little with samba? I have a samba server
>configured for a local network, which needs to serve a share for a
>network of 100 or so Windows pcs.
>Although there is an active directory server I don't want to use
>authentication for this server, I want everyone to be able to connect as
>a guest with read only permissions.
>However, I want ONE particular user on the network to be able to write
>to the share.
>If I have the security options off or manually set to 'user' then this
>person can connect and write to the share perfectly. However, all other
>users are prompted with a username and password. Makes sense.
>So I set security to 'share' which enables all users to connect without
>a password, however now the user I want to be able to write to the share
>My guess is that samba just forgets about auth and connects everyone as
>guest (?) but I want this user to be authenticated and allowed to write
>to the share.
>So perhaps I want something like: first try to authenticate the user, if
>not, then connect with guest. This way he should be authenticated and
>the share gives him write access, but all others are not authenticated
>and therefore connect as guest, for which the share denies write access.
>I hope that makes sense.. can anyone tell me what I'm doing wrong?
>Box is running Etch. I've been fiddling with the smb.conf but here it is
>in its latest state:
> workgroup = mshome.local
> server string = %h server
> dns proxy = no
> log file = /var/log/samba/log.%m
> max log size = 1000
> syslog = 0
> panic action = /usr/share/samba/panic-action %d
> security = share
> encrypt passwords = true
> passdb backend = tdbsam
> obey pam restrictions = yes
> guest account = nobody
> invalid users = root
> passwd program = /usr/bin/passwd %u
> socket options = TCP_NODELAY
> comment = Graphics
> guest ok = yes
> browseable = yes
> path = /data/samba/graphics
> writable = no
> create mask = 0775
> directory mask = 0775
> write list = chrissmart
> force group = chrissmart
> public = yes
>linux mailing list
>linux at lists.samba.org
Advertisement: Its simple! Sell your car for just $30 at carsales.com.au
More information about the linux