File Permissions nobody:nobody


 
Thread Tools Search this Thread
Operating Systems AIX File Permissions nobody:nobody
# 1  
Old 01-14-2009
File Permissions nobody:nobody

AIX 5.3 environment. On the local system, I am sharing a jfs2 filesystem as an exported filesystem. I have many other AIX 5.3 server mounting to this file system and can create, move, copy, ... data to and from this share.

Recently, we've run into a problem. When on another system (okay, all systems except the local system), users try to create a folder or file on this "share," but the new permissions are automatically set to nobody:nobody.

It is easy enough to change the permissions, but I am not sure why this is happening now. On the local system, I was able to create a new file and folder with the proper permissions system:root. It seems as if there is a problem with the share itself. I looked through the file systems settings, NFS settings, and exported file system settings, but didn't see anything out of the ordinary.

Has anyone come across this before?

Thanks

Casey
# 2  
Old 01-15-2009
Without going into to much depth check the user IDs on both systems. For example in the password file:

On system 1

user1:!:503:etc
user2:!:504:etc

On system 2

user1:!:205
user2:!:206

This would cause your problem.
# 3  
Old 01-15-2009
I did some more looking into this last night, and I did an ls -la on the server1 (a.k.a server with NFS). For some reason it had settings of:

123:107

I checked both server1 and server2 for these UID and GUID but neither of the systems have these. I ran a: chown root:system to reset the permissions and tested another folder/file creation from server2. same problem.

I also checked the /etc/passwd file as johnf suggests and everything lines up.

Server1
------------------
root:!:0:0::/:/usr/bin/ksh
daemon:!:1:1::/etc:
bin:!:2:2::/bin:
sys:!:3:3::/usr/sys:
adm:!:4:4::/var/adm:
uucp:!:5:5::/usr/lib/uucp:
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967294::/:
lpd:!:9:4294967294::/:
lp:*:11:11::/var/spool/lp:/bin/false
invscout:*:6:12::/var/adm/invscout:/usr/bin/ksh
snapp:*:200:13:snapp login user:/usr/sbin/snapp:/usr/sbin/snappd
ipsec:*:201:1::/etc/ipsec:/usr/bin/ksh
nuucp:*:7:5:uucp login user:/var/spool/uucppublic:/usr/sbin/uucp/uucico
sshd:*:202:201::/var/empty:/usr/bin/ksh
fmwalke:!:10:14::/home/fmwalke:/usr/bin/ksh
khlosey:!:12:14::/home/khlosey:/usr/bin/ksh
rlyoung:!:102:0::/home/rlyoung:/bin/ksh
rlyoung2:!:103:0::/home/rlyoung2:/bin/ksh
------------------

Server2
------------------
root:!:0:0::/:/usr/bin/ksh
daemon:!:1:1::/etc:
bin:!:2:2::/bin:
sys:!:3:3::/usr/sys:
adm:!:4:4::/var/adm:
uucp:!:5:5::/usr/lib/uucp:
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967294::/:
lpd:!:9:4294967294::/:
lp:*:11:11::/var/spool/lp:/bin/false
invscout:*:6:12::/var/adm/invscout:/usr/bin/ksh
snapp:*:200:13:snapp login user:/usr/sbin/snapp:/usr/sbin/snappd
nuucp:*:7:5:uucp login user:/var/spool/uucppublic:/usr/sbin/uucp/uucico
ipsec:*:201:1::/etc/ipsec:/usr/bin/ksh
sshd:*:202:201::/var/empty:/usr/bin/ksh
fmwalke:!:10:202::/home/fmwalke:/usr/bin/ksh
khlosey:!:12:202::/home/khlosey:/usr/bin/ksh
ldap:*:203:1::/home/ldap:/usr/bin/ksh
qr3adm:!:207:202:SAP System Administrator:/home/qr3adm:/bin/csh
oraqr3:!:208:204:SAP Database Administrator:/oracle/QR3:/bin/csh
sapintf:!:210:202:Sap User:/sapinterfaces/QR3ftp:/bin/ksh
# 4  
Old 01-16-2009
Quote:
Originally Posted by clking
I did some more looking into this last night, and I did an ls -la on the server1 (a.k.a server with NFS). For some reason it had settings of:

123:107

I checked both server1 and server2 for these UID and GUID but neither of the systems have these. I ran a: chown root:system to reset the permissions and tested another folder/file creation from server2. same problem.

I also checked the /etc/passwd file as johnf suggests and everything lines up.

Server1
------------------
root:!:0:0::/:/usr/bin/ksh
daemon:!:1:1::/etc:
bin:!:2:2::/bin:
sys:!:3:3::/usr/sys:
adm:!:4:4::/var/adm:
uucp:!:5:5::/usr/lib/uucp:
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967294::/:
lpd:!:9:4294967294::/:
lp:*:11:11::/var/spool/lp:/bin/false
invscout:*:6:12::/var/adm/invscout:/usr/bin/ksh
snapp:*:200:13:snapp login user:/usr/sbin/snapp:/usr/sbin/snappd
ipsec:*:201:1::/etc/ipsec:/usr/bin/ksh
nuucp:*:7:5:uucp login user:/var/spool/uucppublic:/usr/sbin/uucp/uucico
sshd:*:202:201::/var/empty:/usr/bin/ksh
fmwalke:!:10:14::/home/fmwalke:/usr/bin/ksh
khlosey:!:12:14::/home/khlosey:/usr/bin/ksh
rlyoung:!:102:0::/home/rlyoung:/bin/ksh
rlyoung2:!:103:0::/home/rlyoung2:/bin/ksh
------------------

Server2
------------------
root:!:0:0::/:/usr/bin/ksh
daemon:!:1:1::/etc:
bin:!:2:2::/bin:
sys:!:3:3::/usr/sys:
adm:!:4:4::/var/adm:
uucp:!:5:5::/usr/lib/uucp:
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967294::/:
lpd:!:9:4294967294::/:
lp:*:11:11::/var/spool/lp:/bin/false
invscout:*:6:12::/var/adm/invscout:/usr/bin/ksh
snapp:*:200:13:snapp login user:/usr/sbin/snapp:/usr/sbin/snappd
nuucp:*:7:5:uucp login user:/var/spool/uucppublic:/usr/sbin/uucp/uucico
ipsec:*:201:1::/etc/ipsec:/usr/bin/ksh
sshd:*:202:201::/var/empty:/usr/bin/ksh
fmwalke:!:10:202::/home/fmwalke:/usr/bin/ksh
khlosey:!:12:202::/home/khlosey:/usr/bin/ksh
ldap:*:203:1::/home/ldap:/usr/bin/ksh
qr3adm:!:207:202:SAP System Administrator:/home/qr3adm:/bin/csh
oraqr3:!:208:204:SAP Database Administrator:/oracle/QR3:/bin/csh
sapintf:!:210:202:Sap User:/sapinterfaces/QR3ftp:/bin/ksh
What filesystem has the owner and group of 123:107?

Run the command:

lsgroup ALL

Check if there is a group numbered 107 I guess there isn't!
# 5  
Old 01-16-2009
please post /etc/exports from server1

and if available the /etc/filesystems entry for the remote filesystem on server 2
# 6  
Old 01-16-2009
Found the problem...or, I should say, my co-worker saw the problem. We have two NICs on the server, and have addressing set up accordingly. Some time ago we had issues with the server, and it appears that I gave access to the servers with the "internal" naming convention that is supposed to be for the nim server. I was able to get to the share and do what I wanted from the "external," but then ran into the nobody:nobody file permission.

Because I was on server, sapdbw2, I changed the permission from db2 to sapdbw2 and was able to create a file/folder with the proper permissions.

I am still thinking about this, because it doesn't seem quite complete. I understand I have naming conventions that the nim server sees, and then what the rest of the world sees. Maybe I need to modify the /etc/hosts file so it doesn't matter if I have the server listed as db2 or sapdbw2.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Changing file permissions of a file created by another user

Hi, I have used expdp for datapump. The .dmp file is created by the "oracle" user. my requirement is to make a zipped file of this .dmp file. What i am trying to do is change the permissions of this .dmp file from 0640 to 0644 and then do a gzip and zip it. Is there any way i can change... (3 Replies)
Discussion started by: qwertyu
3 Replies

2. Shell Programming and Scripting

ksh; Change file permissions, update file, change permissions back?

Hi, I am creating a ksh script to search for a string of text inside files within a directory tree. Some of these file are going to be read/execute only. I know to use chmod to change the permissions of the file, but I want to preserve the original permissions after writing to the file. How can I... (3 Replies)
Discussion started by: right_coaster
3 Replies

3. Filesystems, Disks and Memory

Regarding File permissions

Hi, I have a shellscript.I want to protect the source code. So I gave 711 permission on the file(owner=rwx,group=x,others=x) but still others are not able to execute it. Please help me in protecting the source code.I don't want others to use any cat or vi command on the script but... (1 Reply)
Discussion started by: bishnu.bhatta
1 Replies

4. Shell Programming and Scripting

Retain file permissions when saving .sh file from internet [OS X]

Hello. I have written a bash script that I am sharing with an OS X community I am a member of. The purpose of the script is to execute a series of commands for members without them having to get involved with Terminal, as it can be daunting for those with no experience of it at all. I have renamed... (4 Replies)
Discussion started by: baza210
4 Replies

5. Shell Programming and Scripting

file permissions

Hi all, My UNIX box is HP UX - 11.11. I have got a basic doubt. What are the global permissions for a file and directory? I set the mask as 111 in my .profile. When I create a new file, it gets created withe -rw-rw-rw- permissions. A directory is created with drw-rw-rw- permissions. So, i... (7 Replies)
Discussion started by: ranj@chn
7 Replies

6. HP-UX

To give the "unzip" permissions & "create" file permissions

Hi, I am a Unix Admin. I have to give the permissions to a user for creating new file in a directory in HP-Ux 11.11 system since he cannot able to create a new file in the directory. Thanks in advance. Mike (3 Replies)
Discussion started by: Mike1234
3 Replies

7. UNIX for Dummies Questions & Answers

file permissions: l

Hello, what does the l file permission stands for and in which UNIX systems can it be used? (1 Reply)
Discussion started by: Tobe
1 Replies

8. UNIX for Dummies Questions & Answers

File permissions

Is there any way that I can use the ls command to view the permissions that a group has on a file. I know ls -l file1 will list all the permissions for file1. Would I have to use the following command: ls -l file1 Then grep or sed the output to retrieve what permissions the group has. (5 Replies)
Discussion started by: beginner1
5 Replies

9. UNIX for Advanced & Expert Users

File Permissions

Hi, Though the /etc/profile and .profile have the same umask setting 022, still the directories are created by default with different permissions, how is this possible?? So where should i change what is i want directories to be created with different permissions and files with different... (1 Reply)
Discussion started by: baanprog
1 Replies

10. Shell Programming and Scripting

file permissions

Hi! Is there any shell parameter that I can use in my script to check the file-permissions I have in the currect directory!? The history behind is: My script tries to create some log files in the folder and I want to see whether I have enough permissions to do that. And exit in case I dont... (4 Replies)
Discussion started by: mohanprabu
4 Replies
Login or Register to Ask a Question