Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question samba userprofiles

    hy ,

    i have a qwestion is it possible to change te user folder of the samba users from this /home/%USERNAME% to /home/samba/profiles/%USERNAME%

    by default the users are storred in the first one:

    i will post my config file under here
            workgroup       = SERVER.COM
            netbiosname     = debian-server
            server string    = %h server (Samba, Ubuntu)
            dns proxy        = no
            log file         = /var/log/samba/log.%m
            max log size     = 1000
            syslog           = 0
            panic action     = /usr/share/samba/panic-action %d
            security                 = user
            encrypt passwords        = true
            passdb backend           = tdbsam
            obey pam restrictions    = yes
            unix password sync       = yes
            passwd program           = /usr/bin/passwd %u
            passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *Password\supdated\ssuccessfully* .
            pam password change     = yes
            map to guest            = bad user
            domain logons           = yes
            domain master           = yes
            local master            = yes
            preferred master        = yes
            os level                = 64
            logon path              = \\%N\%U\profile
            logon drive             = H:
            logon home              = \\%N\%U
            logon script            = logon.cmd
            add machine script = /usr/sbin/useradd -g machines -c "%u machine account" -d /var/lib/samba -s /bin/false %u
            comment         = home directories
            browseable      = no
            writeable       = yes
            comment         = test share
            path            = /home/test
            guest ok        = yes
            read only       = yes
            comment         = Network Logon Service
            path            = /home/samba/netlogon
            guest ok        = yes
            read only       = yes
            share modes     = no
            comment                 = User Profiles
      path                    = /home/samba/profiles
            guest ok                = no
            browseable              = no
            create mask             = 0600
            directory mask          = 0700
            comment                 = All Printers
            browseable              = no

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    I assume you are using the system authentication mechanisms to validate a user that is accessing a Samba share? If so, then the system will assign them to the folder found in /etc/passwd, which by default is /home/username. If these people aren't going to login to the system directly (via ssh, telnet, etc), then you can change their default directory to /home/samba/profiles/username.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts