How to access file path from another server?

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers How to access file path from another server?
# 8  
Old 10-30-2016
Root squash

Quote:
Originally Posted by alvinoo
Hi Aia,

So that means I just need to call /share from another node within the same subnet and it will work for your nfs sharing mode method?

---------- Post updated at 05:57 AM ---------- Previous update was at 01:54 AM ----------

Hi there,

Is it possible to specific the NFS security restricted to particular host and by UID and GID?

Another thing is what is the difference between root squashing, nosuid, noexec options?

How do I access through UID and GID through manipulation?
Hello,

Root squash

Root squash is a reduction of the access rights for the remote superuser (root) when using identity authentication
(local user is the same as remote user). It is primarily a feature of NFS but may be available on other systems as well.

This problem arises when a remote file system is shared by multiple users. These users belong to one or multiple groups.
In Unix, every file and folder normally has separate permissions (read, write, execute) for the owner
(normally the creator of the file), for the group to which the owner belongs, and for the "world" (all other users).
This allows restriction of read and write access only to the authorized users while in general the NFS server must also be protected by firewall.

A superuser has more rights than an ordinary user, being able to change the file ownership, set arbitrary permissions, and
access all protected content. Even users that do need to have root access to individual workstations may not be authorized
for the similar actions on a shared file system. Root squash reduces rights of the remote root, making one no longer superuser.
On UNIX like systems, root squash option can be turned on and off in /etc/exports file on a server side.

After implementing the root squash, the authorized superuser performs restricted actions after logging into an NFS server directly
and not just by mounting the exported NFS folder.

2nd:
the nosuid, noexec and others are options which you can pass to the mount command (which performs the actual mounting).

Regards
# 9  
Old 10-30-2016
Quote:
Originally Posted by alvinoo
So that means I just need to call /share from another node within the same subnet and it will work for your nfs sharing mode method?
It will, if a few criteria are met by all the involved nodes. Which criteria these are depends on the version of NFS you want to employ as i said already several posts above. In general: you need certain daemons to run but which that are depends on the version of NFS, because different versions need different daemons and you need certain open ports (but which these are again depends on the version you want to use) and a few other things too.

As you didn't answer which version you want to use no general answer to your question can be given.

Quote:
Originally Posted by alvinoo
Is it possible to specific the NFS security restricted to particular host and by UID and GID?

How do I access through UID and GID through manipulation?
Yes, but again: depending on the version of NFS you want to use there are different methods used.

I hope this helps.

bakunin
# 10  
Old 10-30-2016
I think the /share in the previous post is the exported(=shared) directory on the NFS server. The given /share line is not a command; it is an entry in the /etc/exports file. The command exportfs -av activates the lines in the exports file.
On the NFS client(s) the mount command mounts the server's exported share to a local directory. Then all files in the mounted directory are located on the NFS server.
The export works on host(ip, network) level. Once mounted, the file owner and permissions decide on UID/GID level, just like the local files.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Convert Relative path to Absolute path, without changing directory to the file location.

Hello, I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies

2. Solaris

Access to one path!

Hi All, I have question and I need someone to help me in this regard:) I have Solaris 11 I have created user called : appuser appuser member to staff group actually I have this system \app\sys\system\bin\logs I want appuser to have access only to this path... (1 Reply)
Discussion started by: nsnaa
1 Replies

3. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

4. Proxy Server

How to use Squid on Linux to control certain IP to access Web Server and certain IP cannot access?

Dear all experts here, :) I would like to install a proxy server on Linux server to perform solely to control the access of Web server. In this case, some of my vendor asked me to try Squid and I have installed it onto my Linux server. I would like know how can I set the configuration to... (1 Reply)
Discussion started by: kwliew999
1 Replies

5. Shell Programming and Scripting

Multi server access through remote server using ssh

Team, Presently I have 5 ip address kept in ip_abc1 file, for each of the ip address listed, i need to login on each ipaddress one at a time and login as below for that specific ip address ssh -p 8101 karaf@<ip.address_for the specific ip address as logged in> password features:list... (4 Replies)
Discussion started by: whizkidash
4 Replies

6. Shell Programming and Scripting

Wait for file to get copied in server path and then proceed

Hi, I have a requirement to create below script: Script must run infinitely in background. It will check a particular type of file to be copied in specific folder of server Script must wait till any file gets fully copied ..(important) and then It will read that file Experts please... (4 Replies)
Discussion started by: Vikash163
4 Replies

7. UNIX for Dummies Questions & Answers

Access of Microsoft Team Foundation Server (TFS) repository from Unix Server

Hello, Some of our application team uses Microsoft Team Foundation server (TFS) reposity tool for their .NET projects , I would like to access it form Unix/Linux machine. Please let me know how can access the TFS from unix. Thanks (0 Replies)
Discussion started by: posix
0 Replies

8. Shell Programming and Scripting

Can a script runned in local server access remote server?

Hi, Im creating a script that is supposed to run commands on remote server using sftp. My script is as below: #!/bin/ksh sftp remote_server mypassword cd /u08/mydir/allfiles mget * .. But this is what I got when I runned the script: Connecting to remote server...... (3 Replies)
Discussion started by: luna_soleil
3 Replies

9. Linux

userid access to a single path

Hi All, Can a user-a on linux be able to access to particular path only? I think is not possible because if the /etc have r on the other then user-a can access it. Right? Thanks for any comment you have will add. (1 Reply)
Discussion started by: itik
1 Replies
Login or Register to Ask a Question