-   Linux - Server (
-   -   SAMBA - Administrator access home directories (all of them) (

martino87r 06-07-2009 06:16 PM

SAMBA - Administrator access home directories (all of them)
I'm trying to setup a samba server and allow an administrative account to access (not need to browse) the users home directories. I've done this previously using mapping files and it was working perfectly. Suddenly due to an update the things stopped to work, and whenever i try to access the userfolders i get NT_ACCESS_DENIED. Very strange...
BTW here is my smb.conf (very simple)


        admin users = root, smbadmin
#      logon drive = P:
        username map = /etc/samba/
        logon home = \\%L\%U\.9xprofile
        wins support = true
        netbios name = SERVER
        netbios aliases = Server
        server string = Server - SMB Suse
        usershare max shares = 208
        workgroup = LISCARA
        os level = 65
#      add user script = /usr/sbin/useradd -m %u
        security = user
#      add machine script = /usr/sbin/useradd  -c Machine -d
#/var/lib/nobody -s /bin/false %m$

        comment = Home Dirs
        valid users = %S
        read only = No
        browseable = No
        admin users = root, smbadmin

Any idea?

chitambira 06-08-2009 11:23 AM

In [homes]

valid users = %S

path = /path/to/homes/%S

martino87r 06-08-2009 02:08 PM

Well, the user home directories are working perfectly... Because here i have a very complex infrastructure (i don't need a DC at all), the user home directories are in different locations (using a SAN) and mounted with NFS not only in /home/...

So the parameter %S is working perfectly...

I'm looking just a way to let an user access all the user homes by a path written by hand:

ex. user joeblogg, his home dir will be //server/joeblogg. Because I'm using the user security, other users will see only their own homes.

If i login as the root, I'm getting the "root" home directory, but when trying to access //server/joeblogg get the "NT_ACCESS_DENIED" message...

All times are GMT -5. The time now is 11:27 PM.