[clug] Samba help
Chris Smart
chris at kororaa.org
Wed Mar 28 02:12:07 GMT 2007
Hi Mike,
Thanks for your reply.
I tried this before, however when security was set to 'share' it ignored
the username and password that I 'forced' it to connect with. But
setting this back to 'user' will let me connect with another username
and try your suggestion.
I didn't want to do it this way originally because I didn't want it
popping up and having to type in usernames and passwords. However your
suggestion of adding it to the login script made me realise I could set
the username with 'net use' and then it shouldn't be an issue.
Thanks! :)
So that'll do for now, unless someone has a 'proper way' of doing it.
Thanks a lot!
Cheers,
Chris
On Wed, 2007-03-28 at 01:45 +0000, Mike J wrote:
> 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.
>
> cheers
>
> michael.
>
>
>
>
> >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
> >
> >Greetings all,
> >
> >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
> >can't.
> >
> >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:
> >
> >;start
> >[global]
> > 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
> >
> >[graphics]
> > 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
> >;end
> >
> >Muchas gracias!
> >Chris
> >--
> >linux mailing list
> >linux at lists.samba.org
> >https://lists.samba.org/mailman/listinfo/linux
>
> _________________________________________________________________
> Advertisement: Its simple! Sell your car for just $30 at carsales.com.au
> http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801577%2Fpi%5F1005244%2Fai%5F838588&_t=754951090&_r=tig&_m=EXT
>
More information about the linux
mailing list