- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- NFS server's option anon=-1
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 01:18 AM
тАО10-03-2001 01:18 AM
NFS server's option anon=-1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 01:37 AM
тАО10-03-2001 01:37 AM
Re: NFS server's option anon=-1
The uid of -2 is reserved for remote root access by means of NFS. The pw_name usually given to this uid is nobody. Since uids are stored as signed values, the following define is included in
UID_NOBODY (-2)
Since you set anon to -1, which has no special meaning so this is just a normal user.
-Santosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 04:05 AM
тАО10-03-2001 04:05 AM
Re: NFS server's option anon=-1
Using -anon=65534 or -anon=-2 tells the NFS server that unknown users (as well as a remote root) uses the specified UID on the local system. The numbers I have given are for user nobody. You could create a specific user with whatever UID you choose and tell the NFS server to use that UID when an unknown remote UID tries to access the exported filesystem. You can give that specific user specific access to your filesystem or directories/files in the filesystem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 04:57 PM
тАО10-03-2001 04:57 PM
Re: NFS server's option anon=-1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-03-2001 08:24 PM
тАО10-03-2001 08:24 PM
Re: NFS server's option anon=-1
From the man page for exportfs
/Begin/
anon=uid If a request comes from an unknown user, use uid as the effective user ID.
Root users (user ID 0) are always treated as user unknown by the NFS server unless they are included in the root option below.
If the client is a UNIX system, only root users are considered unknown. All other users are recognized even if they are not in /etc/passwd.
The default value for uid is the user ID of user nobody. If user nobody does not exist, the value -2 is used. Setting the value of anon to -1 disables anonymous access.
/End/
So if you set anon to -1 it prevents access to root on clients (unless specified using the root option in /etc/exports) and also prevents access to users not defined on the server.
-HTH
Ramesh