Linux/Samba w/ multiple users

From: robbie (roberto.quesada_at_gmail.com)
Date: 03/25/05


Date: 25 Mar 2005 09:04:02 -0800

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.
Basically, I want everyone logging in with his own account to be thrown
into the same location/directory, but I want to be able to control what
each person can see within that location.

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



Relevant Pages

  • Re: Setting Up Samba Acounts with webmin?
    ... share a linux file sys as a specific user, say, guest. ... to allow me to share files for all samba users. ... That allows guest to designate it allows a share with Win user's who are also guest? ... > From Windows hosts you should use from a DOS shell, ...
    (comp.os.linux.networking)
  • re: Public resource at SAMBA
    ... I would like to thanks really the amazing Thomas Cameron's help ... global parameter "map to guest = Bad User".. ... Subject: Public resource at SAMBA ... So then you need to look at the entry in smb.conf called "map to guest:" ...
    (Fedora)
  • win95 connect Samba problem
    ... i have a Linux Samba in RedHat 9.2. ... for Win 98,2000,XP and Linux to connect the Samba server except Win95. ... guest account = upload ...
    (comp.protocols.smb)
  • Re: Samba damn slow
    ... > Samba is ok and the lan is working but tranfers between the linux box and ... > server string = Samba ... > map to guest = bad user ...
    (comp.os.linux.networking)
  • Re: Public resource at SAMBA
    ... guest account ... So then you need to look at the entry in smb.conf called "map to guest:" ... I want to make a public share on my Linux box. ...
    (Fedora)