Results 1 to 2 of 2
Thread: samba userprofiles
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2011
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
#####SAMBA 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 ####AUTHENTICATION 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 ####DOMAINS 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 [homes] comment = home directories browseable = no writeable = yes [test] comment = test share path = /home/test guest ok = yes read only = yes [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = yes read only = yes share modes = no [profiles] comment = User Profiles path = /home/samba/profiles guest ok = no browseable = no create mask = 0600 directory mask = 0700 [printers] comment = All Printers browseable = no
- 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!