LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   SAMBA - Administrator access home directories (all of them) (http://www.linuxquestions.org/questions/linux-server-73/samba-administrator-access-home-directories-all-of-them-731301/)

martino87r 06-07-2009 07: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)


Code:

[global]
        admin users = root, smbadmin
#      logon drive = P:
        username map = /etc/samba/user.map
        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$

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

Any idea?

chitambira 06-08-2009 12:23 PM

In [homes]
Quote:

valid users = %S
need
Quote:

path = /path/to/homes/%S

martino87r 06-08-2009 03: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 01:46 AM.