Difference between revisions of "Setting-up an NFS client for just one user"
From Supercomputación y Cálculo Científico UIS
(Created page with "Back to NFS -grupo gid = 20030exi (igual al de guane) groupadd -gid 20030 GridUIS --force-badname") |
|||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
− | - | + | <div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div> |
− | groupadd -gid | + | <p><div class="btn btn-primary"><i class="fa fa-long-arrow-left"></i> [[NFS]]</div></p> |
+ | |||
+ | <div class="col-md-14"> | ||
+ | <div class="panel panel-darker-white-border"> | ||
+ | <div class="panel-heading"> | ||
+ | <h3 class="panel-title">Setting-up an NFS client for just one user</h3> | ||
+ | </div> | ||
+ | <div class="panel-body"> | ||
+ | <p> | ||
+ | |||
+ | The following procedure allows NFS to work for a single user or a set of them, without using NIS or LDAP authentication. | ||
+ | |||
+ | 1. Create a group in the target (client) machine. In this example gid_number and GroupName represent the gid and name of the group in the server machine, with exact capitalisation. | ||
+ | {{Command|<nowiki>groupadd -gid gid_number GroupName --force-badname</nowiki>}} | ||
+ | 2. Create a user in the target (client) machine. In this example ID and UserName represent the uid and name of the user in the server machine and gid_number the gid of the previously created group, with exact capitalisation. | ||
+ | {{Command|<nowiki>useradd -gid gid_number UserName --uid ID --force-badname</nowiki>}} | ||
+ | 3. Test the setup by mounting the required folder. It should be being exported in the server machine. | ||
+ | |||
+ | 4. Edit /etc/fstab accordingly. | ||
+ | |||
+ | </p> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> |
Latest revision as of 20:13, 9 April 2015
Setting-up an NFS client for just one user
The following procedure allows NFS to work for a single user or a set of them, without using NIS or LDAP authentication. 1. Create a group in the target (client) machine. In this example gid_number and GroupName represent the gid and name of the group in the server machine, with exact capitalisation.
groupadd -gid gid_number GroupName --force-badname
2. Create a user in the target (client) machine. In this example ID and UserName represent the uid and name of the user in the server machine and gid_number the gid of the previously created group, with exact capitalisation.
useradd -gid gid_number UserName --uid ID --force-badname
3. Test the setup by mounting the required folder. It should be being exported in the server machine.
4. Edit /etc/fstab accordingly.