Most users would now be using Solaris 11 with the CIFS integrated modules and manage SMB sharing from ZFS directly. So this post is not applicable to the “right” way of doing things. I recently had to support a Solaris 11 Express server running samba and using local users. So I made a few useful notes here.
Server specifics:
SunOS server1 5.11 snv_151a i86pc i386 i86pc Solaris
# prtdiagSystem Configuration: Sun Microsystems Sun Fire X2200 M2 with Quad Core ProcessorBIOS Configuration: Sun Microsystems S39_3D12 10/06/2008BMC Configuration: IPMI 1.5 (KCS: Keyboard Controller Style)...
# smbd -VVersion 3.5.5
# svcs | grep sambaonline 2011 svc:/network/samba:default
# ps -ef | grep mbdroot 1621 1 0 Nov 20 ? 64:55 /usr/sbin/nmbd -Droot 3421 1617 0 Dec 10 ? 0:07 /usr/sbin/smbd -D
...Add user:
# useradd rrosso
# mkdir /server1/home/rrosso
# chown rrosso /server1/home/rrosso
# grep rrosso /etc/passwdrrosso:x:151:10:Riaan Rossouw:/server1/home/rrosso:/bin/ksh
# pwconv
# smbpasswd -a rrossoNew SMB password:Retype new SMB password:Added user rrosso.
# pdbedit -L -v rrossoUnix username: rrossoNT username:Account Flags: [U ]User SID: S-1-5-21-1747637251-3107012253-2823653391-1004Primary Group SID: S-1-5-21-1747637251-3107012253-2823653391-513Full Name: Riaan RossouwHome Directory: \\server1\rrossoHomeDir Drive:Logon Script:Profile Path: \\server1\rrosso\profileDomain: SERVER1Account desc:Workstations:Munged dial:Logon time: 0Logoff time: neverKickoff time: neverPassword last set: Tue, 11 Dec 2012 14:00:22 ESTPassword can change: Tue, 11 Dec 2012 14:00:22 ESTPassword must change: neverLast bad password : 0Bad password count : 0Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFShare specifics:
# testparmLoad smb config files from /etc/samba/smb.confrlimit_max: rlimit_max (256) below minimum Windows limit (16384)Processing section "[homes]"Processing section "[Backups]"...[Backups]comment = IT Backups Folderpath = /server1/backupvalid users = rrossoread only = Nocreate mask = 0777force create mode = 0777force directory mode = 0777force directory security mode = 0777volume = FileServerfollow symlinks = No...