Add the Samba service in Ubuntu10.10

Source: Internet
Author: User
Sudoapt-getinstallsambasmbfs #### graphic interface ### sudoapt-getinstallsystem-config-sambamkdir/home/flexitime/unzip chmod755/home/flexitime/sharesudocp/etc/samba/smb. conf/etc/samba/smb. conf.

Sudo apt-get install samba smbfs

#### Graphical interface
### Sudo apt-get install system-config-samba

Mkdir/home/flexitime/share

Chmod 755/home/flexitime/share

Sudo cp/etc/samba/smb. conf/etc/samba/smb. conf. bak

Sudo nano/etc/samba/smb. conf
----------------------------

Find the Keyword:
# Security = user
Replace:

# By flexitime
Security = user
Username map =/etc/samba/smbusers

# Add at the end of the file

# By flexitime

### This is read-only
[Iso]
Comment = Shared Folder with username and password
Path =/stgb
Read only = yes
Create mask = 0755
Directory mask = 0755

### This is writable.
[Stgb]
Comment = Shared Folder with username and password
Path =/stgb
Writeable = yes
Read only = no
Create mask = 0777
Directory mask = 0777
Valid users = flexitime


###################
Change the value here by the way. Find [global] and change workgroup = MSHOME
Workgroup = WORKGROUP
Displays charset = UTF-8
Unix charset = UTF-8
Dos charset = cp936
####################
########

------------------
Sudo useradd wuser
Sudo smbpasswd-a wuser

// By delete user: sudo smbpasswd-x wuser

Sudo nano/etc/samba/smbusers
---------------------
# By flexitime
Wuser = "windows user"
Fleiximte = ""
---------------------
Sudo testparm
Sudo service smbd restart

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.