NFS-network file Sharing service(server)
This
is used for file sharing in UNIX networks. A windows user will not be
able to access these files as these shares will be purely for UNIX
environment.
Package name: nfs-utils
Service name: nfs
Port number: There is not specific for this server, it depends on service portmap. portmap requires 111 port.
service portmap status
netstat atnp |grep 111
Path: /etc/export
Log file: /var/logs/messages
To share some file/directory, just add the path for that file in the /etc/export in this format
sharename space ID/IP nospace permissions
sharename *ID/IP-permissions
/crackers *(ro,sync)
it will share the /crackers with the permissions(readonly,sync)
where sync means if a new file is copied inside the /crackers it will be shown to the users after the file is completely copied.
/crackers *(rw,async)
it will share the /crackers with the permissions(readwrite,async)
where async means if a new file is copied inside the /crackers it will be shown to the users before it is completely copied.
/crackers 192.168.0.0/255.255.255.0(rw,sync)
it will share the /crackers with the permissions(readwrite,sync) to all the IP's that belongs to class 192.168.0.0/255.255.255.0
/crackers *.blackhats.com(rw,sync)
it will share the /crackers to all the members of domain blackhats.com with the permissions(readwrite,async)
/crackers *.blackhats.com(ro,sync) EXCEPT godfather.blackhats.com(rw,async)
it will share the /crackers to all the members of domain blackhats.com with the permissions(readonly,sync) while godfather.blackhats.com will have (readwrite,async) permissions.
HOW TO ACCESS NFS SHARES
To access network shares one have to mount those shares by using this command:
#mount /source:/path@server /Destination
#mount /192.168.0.1:/crackers /mnt/nfsshares
whenever we create a new mount point we have to restart nfs service. But when file replication is in progress never restart nfs service just use its updation as:
#exportfs -ra (will updates nfs)
#exportfs -v (will show mount)
And the most important point is that root have to set permissions locally on those shares so that users can access this.
installations can also be made in unix environment using nfs.
Package name: nfs-utils
Service name: nfs
Port number: There is not specific for this server, it depends on service portmap. portmap requires 111 port.
service portmap status
netstat atnp |grep 111
Path: /etc/export
Log file: /var/logs/messages
To share some file/directory, just add the path for that file in the /etc/export in this format
sharename space ID/IP nospace permissions
sharename *ID/IP-permissions
/crackers *(ro,sync)
it will share the /crackers with the permissions(readonly,sync)
where sync means if a new file is copied inside the /crackers it will be shown to the users after the file is completely copied.
/crackers *(rw,async)
it will share the /crackers with the permissions(readwrite,async)
where async means if a new file is copied inside the /crackers it will be shown to the users before it is completely copied.
/crackers 192.168.0.0/255.255.255.0(rw,sync)
it will share the /crackers with the permissions(readwrite,sync) to all the IP's that belongs to class 192.168.0.0/255.255.255.0
/crackers *.blackhats.com(rw,sync)
it will share the /crackers to all the members of domain blackhats.com with the permissions(readwrite,async)
/crackers *.blackhats.com(ro,sync) EXCEPT godfather.blackhats.com(rw,async)
it will share the /crackers to all the members of domain blackhats.com with the permissions(readonly,sync) while godfather.blackhats.com will have (readwrite,async) permissions.
HOW TO ACCESS NFS SHARES
To access network shares one have to mount those shares by using this command:
#mount /source:/path@server /Destination
#mount /192.168.0.1:/crackers /mnt/nfsshares
whenever we create a new mount point we have to restart nfs service. But when file replication is in progress never restart nfs service just use its updation as:
#exportfs -ra (will updates nfs)
#exportfs -v (will show mount)
And the most important point is that root have to set permissions locally on those shares so that users can access this.
installations can also be made in unix environment using nfs.
Comments
Post a Comment