[Samba] Working simultaneously with the same user account
Gaiseric Vandal
gaiseric.vandal at gmail.com
Tue Mar 1 06:50:17 MST 2011
Are you using a domain (PC's are in the domain and user accounts are in
the domain not on each PC) or a workgroup (each user account is defined
on his or her own PC.) If the PC's are domain members then you should
just be able to have all the users in a group and the group has access
to that common share.
If the PC's are in a workgroup, the user can map a drive letter to each
share- this can be a persistent drive mapping that stores the
credentials. However, my experience has been that you can not connect
to two different shares on one server, each with a different
credentials. At least this is the case when connecting from an XP Pro
client.
E.g.
net use x: \\server1\share1 /user:jsmith
(that will work)
net use y: \\server1\share2 /user:rsmith
(that will fail with a warning that you are already connected to the
server with different credentials.)
On 03/01/2011 03:09 AM, Aniruddha wrote:
> On Mon, Feb 28, 2011 at 9:37 PM, Gaiseric Vandal
> <gaiseric.vandal at gmail.com> wrote:
>> Are users logging into the PC with this one account? Or are they logging
>> into PC's with unique accounts? Are they accessing other shares besides
>> this one? If this is the only share, it shouldn't be a problem
>> (technically.)
>
> Users are logging into the pc with unique accounts. I would like to
> have them access other shares as well. The idea is to have a simple
> setup with a standard username and password for shares. Here's a
> more complete example:
>
> Greate folders
> ===========
> mkdir /media/test
> chmod -R 770 /media/test
> chmod g+s /media/test
> chown -R root:users /media/test
>
> mkdir /media/samba
> chmod -R 770 /media/samba
> chmod g+s /media/samba
> groupadd office
> chown -R root:office /media/samba
>
> Add users
> ========
> smbpasswd -a user
> smbpasswd -a user2
>
> Add users to relevant groups
> ============================
> gpasswd -a user users
> gpasswd -a user2 office
>
> Create /etc/samba/smb.conf
> ==========================
>
> [global]
> workgroup = WORKGROUP
> netbios name = TESTSERVER
> security = user
>
> [test]
> path = /media/test
> read only = No
> store dos attributes = yes
> inherit permissions = yes
>
> [samba]
> path = /media/samba
> read only = No
> store dos attributes = yes
> inherit permissions = yes
More information about the samba
mailing list