Ubuntusamba server multi-user configuration

Source: Internet
Author: User
The ubuntusamba server has multiple user directories A and B in/home ..., now, samba is used for sharing. user A is required to have root permissions on the directory of user A and read permissions on other directories. User B has root permissions on directory B and is read-only to other directories. And when logging on to various directories...
The ubuntu samba server has multiple user directories A and B in/home ..., now, samba is used for sharing. user A is required to have root permissions on the directory of user A and read permissions on other directories. User B has root permissions on directory B and is read-only to other directories. Enter the samba user name and password when logging on to each directory. Passed on 10.04. Www.2cto.com 1. install sambasudo apt-get install smbfs 2. add the system user sudo adduser A sudo adduser Bsudo adduser xx (user name) do not use sudo uaeradd xxsudo adduser xxAdding user 'XX '... adding new group 'XX' (1008 )... adding new user'xx' (1008) with group 'XX '... creating home directory '/home/xx '... copying files from '/etc/skel '... enter new UNIX password: Enter the user's login password Retype new UNIX password: Confirm password passwd: password updated successfullyChanging the user information for dengyxEnter the new value, or press ENTER for the default Full Name []: ENTER Room Number []: press ENTER Work Phone []: enter Home Phone []: enter Other []: enter Is the information correct? [Y/n] after running y, the user group, user, and corresponding user directory are created in the/home/directory. 3. modify/etc/samba/smb. cof [global] workgroup = WORKGROUP server string = % h server (Samba, Ubuntu) dns proxy = no www.2cto.com log file =/var/log/samba/log. % m max log size = 1000 syslog = 0 panic action =/usr/share/samba/panic-action % d 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 usershare allow guests = yes [homes] comment = homevalid user = % Swritable = yesbrowseable = nocreate mode = 0664 directory mode = 0775 www.2cto.com [] path =/home/Aavailable = yesbrowseable = yespublic = noalid user = Awritable = yes [B] path =/home/Bavailable = y Esbrowseable = yespublic = noalid user = Bwritable = yes 4, add samba users and set passwords. Sudo smbpasswd-a A will prompt you to enter the password and press OK twice. The samba user and password sudo smbpasswd-a B will be created at the same time. 5. Save the configuration, restart the samba service sudo/etc/samba/smbd restart. Note: When you enter the user name and password, a message is displayed: a user cannot use more than one user name to connect to a server or shared resource. Interrupt the connection to the server or shared resources, and then try again... run the following command in windows: Run-"cmd-" net use */del/y author lbmygf
Related Article

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.