Computing.Net > Forums > Linux > Linux/Samba w/ multiple users

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Linux/Samba w/ multiple users

Reply to Message Icon

Name: triverse
Date: March 25, 2005 at 07:46:11 Pacific
OS: SusE
CPU/Ram: Pentium 4, 768
Comment:

Alright. I have a Linux box with SuSE on it running Samba. Samba works; can map to it, transfer files, etc. But it doesn't work the way I'd like it to.

Apparently Windows XP will only allow you to map to a particular Linux machine one time. This can be worked around by mapping once with the name (e.g., \\server\user) and once with the IP (e.g., \\198.383.87.3\user). However this only allows two separate connections.

My problem is this: I have Samba set up to work with a variety of user accounts. I have several users, they log in, they get their home folders. However, I want them to see other folders as well and I don't want everyone to see the same folders.

That is, let's say there are folders A B C on my Linux machine. I want one guy to see A and C and another guy to see B and C and a third guy to see them all, and I want this to happen by having them just log in with their personal accounts. The way it's set up now, each folder we have available on Samba has its own account, so you have to disconnect and then remap in XP with a different name. If I could do the above, we could avoid needing to map the same machine with several names at once.

Keep in mind that I know absolutely nothing about Linux. I used a sample smb.conf and altered things in it, so there is a ton of superfluous stuff in it and I don't know how most of it even works.

I'll post it below. The /builds directory referenced refers to a particular directory I wanted to be able to see when I first set this up. However, we now connect to it using its own account, so I don't think it needs to be referenced. Again, I have no clue what I'm doing. Thanks in advance.

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE
# Date: 2004-06-30
[global]
# remove following line if there are errors
socket options = TCP_NODELAY SO_RCVBUF=2048 SO_SNDBUF=2048
workgroup = CS_STAFF
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
printer admin = @ntadmin, root, administrator
username map = /etc/samba/smbusers
map to guest = Bad User
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
security = user
encrypt passwords = yes
ldap suffix = dc=example,dc=com
domain logons = no
ldap idmap suffix = ou=Idmap
ldap machine suffix = ou=Computers
local master = no
passdb backend = smbpasswd
wins server =
wins support = no
add machine script =
preferred master = auto
[homes]
comment = Home Directories
valid users = %S
browseable = no
read only = No
inherit permissions = Yes
guest ok = no
printable = no
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
browseable = yes
guest ok = no
printable = no
[users]
comment = All users
path = /builds
read only = No
inherit permissions = Yes
veto files = /aquota.user/groups/shares/
browseable = yes
guest ok = no
printable = no
[groups]
comment = All groups
path = /home/groups
read only = No
inherit permissions = Yes
browseable = yes
guest ok = no
printable = no



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: March 29, 2005 at 05:19:03 Pacific
Reply:

"...Apparently Windows XP will only allow
you to map to a particular Linux machine one
time..."

Not sure if I quite understand. We have an
XP pro workstation here at work which I
successfully mapped three different shares
from a samba server. Are you talking about
mapping shares as different users without
logging out of XP (not sure why you would
want this) then when you map the drive you
are given the option of connecting as a
different user. Sounds more like an XP
problem.


0
Reply to Message Icon

Related Posts

See More


Red Hat or Mandrake Deleted Linux Partition



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Linux/Samba w/ multiple users

linux/samba www.computing.net/answers/linux/linuxsamba/7292.html

Linux Samba & Win95 Networking www.computing.net/answers/linux/linux-samba-amp-win95-networking/19016.html

Adding Multiple Users www.computing.net/answers/linux/adding-multiple-users/10863.html