Samba multi-user access [opensuse 11.4]

Source: Internet
Author: User

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

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.