To allow users on Linux servers to access their home directories and other directories on Linux servers through windows.
0. opensuse11.4 users need to disable novoll apparmor, or update Samba configuration under/etc/apparmor. d:
/Etc/apparmor. d/usr. sbin. nmbd:
# Last modified: Sun Feb 20 21:14:20 2011
# Include <tunables/Global>
/Usr/sbin/nmbd {
# Include <categoractions/base>
# Include <categoractions/nameservice>
# Include <export actions/samba>
Capability net_bind_service,
/Usr/sbin/nmbd Mr,
/Var/Cache/samba/browse. dat * RW,
/Var/lib/samba/browse. dat RW,
/Var/lib/samba/browse. dat. W,
/Var/lib/samba/wins. dat * RW,
/Var/log/samba/cores/W,
/Var/log/samba/cores/nmbd/RW,
/Var/log/samba/cores/nmbd/** RW,
/Var/run/samba/** rk,
/Var/run/samba/nmbd. pid rw,
/Etc/apparmor. d/usr. sbin. smbd:
# Last modified: Sun Feb 20 21:14:20 2011
# Include <tunables/Global>
/Usr/sbin/smbd flags = (complain ){
# Include <veriactions/authentication>
# Include <categoractions/base>
# Include <shortactions/shortles>
# Include <export actions/cups-client>
# Include <categoractions/nameservice>
# Include <export actions/samba>
# Include <categoractions/user-TMP>
# Include <javasactions/wutmp>
Capability net_bind_service,
Capability setgid,
Capability setuid,
Capability sys_resource,
Capability sys_tty_config,
/Etc/mtab R,
/Etc/printcap R,
/Etc/samba/passdb. TDB rwk,
/Etc/samba/secrets. TDB rwk,
/Proc/*/mounts R,
/Usr/sbin/smbd Mr,
/Var/Cache/samba/** rwk,
/Var/Cache/samba/printing/printers. TDB mrw,
/Var/lib/samba/** rwk,
/Var/lib/samba/Printers/** RW,
/Var/log/samba/cores/smbd/RW,
/Var/log/samba/cores/smbd/** RW,
/Var/run/cups. Sock RW,
/Var/run/secrets/system_bus_socket RW,
/Var/run/samba/** rk,
/Var/run/samba/smbd. pid rw,
/Var/spool/samba/** RW,
@ {Homedirs}/** rwlk,
}
1. Install the samba Service
Make sure that you have installed the following software:
2. Add a samba User:
Smbpasswd-A Sahu
Note: Sahu is also a valid Linux User
3. Configure the samba service [/etc/samba/smb. conf]
[Global]
Workgroup = workgroup
Passdb backend = tdbsam
Printing = cups
Printcap name = cups
Printcap cache time = 750
Cups Options = raw
Map to guest = bad user
Logon Path = // % L/profiles/. msprofile
Logon home = // % L/% u/. 9 xprofile
Logon drive = P:
Security = domain
NetBIOS name = Susu
Wins support = Yes
Idmap gid = 100-200
Idmap uid = 1000-2000
Usershare allow guests = No
LDAP suffix =
[Homes]
Comment = Home Directories
Valid users = % s, % d % w % s
Browseable = No
Read Only = No
Inherit ACLs = Yes
4. Start the samba service.
Service nmb start; Service SMB start
5. Enter the user name and password for access in windows.
99. Clear the username and password in Windows [reconnect]
C:/users/Sahu> net use */del/y