Suse creates NFS shared folders and susenfs Shared Folders

Source: Internet
Author: User
Tags nfsd

Suse creates NFS shared folders and susenfs Shared Folders

Suse creates an NFS shared folder

Server Configuration:
1. Edit the nfs service configuration file

/software/suse11 *(rw,sync,no_root_squash,no_all_squash) 

Note:
/Software/suse11 is the directory to be shared
* Indicates the IP address range that can be accessed. All IP addresses can be accessed here. Of course, you can also enter the machine name to replace it. Or 192.168.5.0/24 to specify the IP address range or
Machine name, which can contain wildcards.
No_all_squash retains the UID and GID of the shared file (default)
No_root_squash indicates that the root user has full management access permissions to the root directory.
The above configurations are classic and won't be verified directly during client access.

2. Start Related Services
/etc/init.d/nfsserver start
Note: nfsserver is the nfsd service in suse.

Ps-A # Check whether nfsd process showmount-e # Check the existing shared directory

3. After the service is started, the configuration file is modified.
If you have modified the/etc/exports file, you do not need to restart the nfsserver service. Run
Exportfs-rv, # r indicates restart, v indicates display of export options

4. Open the firewall port:
Tcp/udp port: 111,2049,
Udp port: 6000,6001


Client Configuration:
1. Mount the nfs directory on the server

mount -t nfs 192.168.5.10:/pb/res /mnt


2. If you want to automatically mount a machine when it starts, you can add the above command to the startup script:
Modify/etc/init. d/after. local
Add

mount -t nfs 192.168.5.10:/pb/res /mnt


Of course, you can also directly write the NFS directory to/etc/fstab. The disadvantage is that if the server is not started when the client is started, an error will occur.





How to Set shared folders in Linux suse9

First, upgrade the system.
Use samba later. There should be a graphical setup program. NFS works, but it seems that NFS requires support programs under Windows.
 
In SUSE Linux, how does one set file sharing?

I hope this article will help you understand some tips and use samba to share SuSe 10.3 with Windows Vista files. SuSe 10.3 and Windows Vista file sharing make it easier for you to use your computer.

1. SuSe machine IP = 192.168.3.201, Vista machine IP = 192.168.3.100;

2. Yast sets SuSe Samba server, domain = DEV2, host ID = DELL-SUSE;

3. Add the shared directory/home/allen, browserable = true, writeable = true, valid users = root, suse, path =/home/allen, and the shared directory name is allen;

4. added the samba user suse.

The following is a code snippet:
# Useradd suse

5. Set the suse password for samba users

The following is a code snippet:
# Smbpasswd-a suse
New SMB password: xxxxxx
Retype new SMB password: xxxxxx

6. Access SuSe shared files through Vista

\ 192.168.3.201 \ allen

Username: suse

Password: xxxxxx

You can also MAP network drives.

You can also access it through Network Neighborhood. If you cannot see the SuSe machine, run the following command:

The following is a code snippet:
> Nbtstat-A 192.168.3.201

7. Set the shared folder C: \ shared in Vista. The shared folder name is shared;

8. SuSe browses the Vista shared file list through smbclient

The following is a code snippet:
# Smbclient-L // 192.168.3.100-U allen
Password: xxxxxx

9. SuSe accessing Vista shared files

The following is a code snippet:
# Smbclient // 192.168.3.100/allen-U allen
Password: xxxxxx
Smb>

10. mount Vista shared files

The following is a code snippet:
# Mount-t cifs // 192.168.3.100/shared/mnt-o username = allen, password = xxxxxx

After reading this article, have you learned how to share SuSe 10.3 with Windows Vista files? After reading this article, you must have gained a lot. I hope this article will teach you more things.

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.