Re: [Samba] Working simultaneously with the same user account

2011-03-14 Thread Aniruddha

On 01-03-11 16:06, Chris Weiss wrote:


having separate usernames and password per share is never simple, SMB
wasn't designed to work like that.

the simple way is to make user groups for shares and add the users
accounts to the groups they need access to.  This is far simpler as
when you need to take a users rights away from a share due to job
position changes you just remove them from the group instead of making
everyone else remember a new password.
   


Thanks all for the help. I've setup a simple single share with one user, 
which works fine.  I'll try a more complex configuration using groups 
and multiple users/shares  next. From what I've seen this should work 
without any problems.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Working simultaneously with the same user account

2011-03-01 Thread Aniruddha
On Mon, Feb 28, 2011 at 9:37 PM, Gaiseric Vandal 
gaiseric.van...@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
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Working simultaneously with the same user account

2011-03-01 Thread Gaiseric Vandal
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.van...@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


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Working simultaneously with the same user account

2011-03-01 Thread John Drescher
  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.)


This is the case with all windows NT versions that I know of. You can
not login to the same server with different credentials.

There are ways around this. I believe if you do the second mount by
ipaddress or use an alias in samba the client will allow the second
(or more with more aliases) set of credentials to connect to your
samba server.

John
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Working simultaneously with the same user account

2011-03-01 Thread Chris Weiss
On Tue, Mar 1, 2011 at 2:09 AM, Aniruddha mailingdotl...@gmail.com wrote:
 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:

having separate usernames and password per share is never simple, SMB
wasn't designed to work like that.

the simple way is to make user groups for shares and add the users
accounts to the groups they need access to.  This is far simpler as
when you need to take a users rights away from a share due to job
position changes you just remove them from the group instead of making
everyone else remember a new password.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Working simultaneously with the same user account

2011-02-28 Thread Aniruddha
I would like to  authenticate several desktops with the samba server 
using the same user name and password. Is it possible for 5 desktops to 
work simultaneously using the same user name and password in the same 
share on the samba server? Are there any downsides or possible problems 
with this approach? Permissions are inheritable and based on groups:



# mkdir /media/test
# chmod -R 770 /media/test
# chmod g+s /media/test
# chown -R root:users /media/test

# cat /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

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Working simultaneously with the same user account

2011-02-28 Thread Gaiseric Vandal
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.)






On 02/28/2011 11:40 AM, Aniruddha wrote:
I would like to  authenticate several desktops with the samba server 
using the same user name and password. Is it possible for 5 desktops 
to work simultaneously using the same user name and password in the 
same share on the samba server? Are there any downsides or possible 
problems with this approach? Permissions are inheritable and based on 
groups:



# mkdir /media/test
# chmod -R 770 /media/test
# chmod g+s /media/test
# chown -R root:users /media/test

# cat /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



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba