Jelle de Jong
2010-Jun-13 20:39 UTC
[Samba] how to set homeDirectory and loginShell from cli
Hello everybody, I am trying to set the homeDirectory and loginShel of my users in the samba user database from the command line interface (no webgui stuff) See the attachment for the smb.conf The samba users are in a ldapsam:editposix openldap database. They show with getent passwd and getent group or ldapsearch -x. # both do not work usermod --shell /bin/bash username usermod --home /home/samba/username/ username # both show no option to set homeDirectory or loginShell pdbedit -u username net rpc user ? Can somebody help me with the correct command line commands to set the homeDirectory and loginShell for my samba user database? Thanks in advance, With kind regards, Jelle de Jong -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: samba-debug-2010-06-13.txt URL: <http://lists.samba.org/pipermail/samba/attachments/20100613/75588d35/attachment.txt>
Günter Kukkukk
2010-Jun-14 01:12 UTC
[Samba] how to set homeDirectory and loginShell from cli
Am Sonntag 13 Juni 2010 22:39:05 schrieb Jelle de Jong:> Hello everybody, > > I am trying to set the homeDirectory and loginShel of my users in the > samba user database from the command line interface (no webgui stuff) > > See the attachment for the smb.conf > > The samba users are in a ldapsam:editposix openldap database. They > show with getent passwd and getent group or ldapsearch -x. > > # both do not work > usermod --shell /bin/bash username > usermod --home /home/samba/username/ username > > # both show no option to set homeDirectory or loginShell > pdbedit -u username > net rpc user ? > > Can somebody help me with the correct command line commands to set the > homeDirectory and loginShell for my samba user database? > > Thanks in advance, > > With kind regards, > > Jelle de Jong >when you run testparm -vs 2>&1 | grep template you'll notice something like: template homedir = /home/%D/%U template shell = /bin/false Both are [global] settings in smb.conf - i.e. you can set template shell = /bin/bash See also 'man smb.conf'. (Also read 'man idmap_ad' for special cases with that idmap backend.) Cheers, G?nter
Possibly Parallel Threads
- default backend = rid not showing full group information for users
- steps to get automatic home folder created at user logon windows 10 with samba 4.9.5-Debian
- how to use root preexec on user share with %U not as root user
- dnf-makecache.service failing every few days and dnf-automatic.service samba freeipa issues (again).
- default backend = rid not showing full group information for users