Install samba: preparation under Ubuntu8.04: After installing Ubuntu8.04: 1. Update Source: Sudo apt-get update. 2. Install Vim: apt-get install vim. After the apt-get update is complete, you can view the updated configuration in/etc/apt/sources.list, and recommend that you cp /etc before updating /apt/sources.list /etc/apt/sources.list.orig Backup. Step: 1. 2. Creating a Samba directory:sudo mkdir /home/guoq/share 3. Setting Samba directory Permissions:sudo chmod 777 /home/guoq/share 4.copy samba configuration file: Sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.orig 5. Modifying the Samba configuration file:vi /etc/samba/smb.conf [share] path=/home/guoq/share available=yes browsealbe=yes public=yes writable=yes 6. Create a Samba account: 1> sudo Touch /etc/samba/smbpasswd 2 > sudo smbpasswd -a guoq &nBSP; Confirm 7 after typing the password. Restart Samba service: sudo /etc/init.d/samba restart 8. Test samba: smbclient -L //localhost/share 9. If you use samba: under Win7 in the network mapped drive Select a drive letter and enter:\\172.16.1.190\share You can see what's in the Samba service when you're successful. The 172.16.1.190 here is the IP of the samba server. Note: 1. Virtual machines must be in the same network segment as the actual machine. The 2.samba account must be a Linux account, and if it is not a Linux user, you can use the command to add: 1> useradd user1 //Add User1 user name 2> passwd user1 //Set User1 password 3> mkdir /home/user1 //Build User1 User Directory 4> chown -r user1:user1 //Setting up User1 groups
This article is from the "Smart Life Change" blog, so be sure to keep this source http://restlessheart.blog.51cto.com/3831429/1583154
Configure Samba on the ubuntu8.04