LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Unable to read user permittions on a mounted local disc (http://www.linuxquestions.org/questions/linux-server-73/unable-to-read-user-permittions-on-a-mounted-local-disc-903001/)

ledical 09-14-2011 10:23 AM

Unable to read user permittions on a mounted local disc
 
The debian lenny workstation was modified from client system to a stand alone system. User data were copied on a local disc. New users accounts with the server UIDs were build. The local disc with the user data was mounted. Permittions and owners are accurately shown for the superuser (root) but not for the normal user:
ls -l provides something like:
d????????? ? ? ? ? ? name

ls -l performed by the administrator provides the full file informtion(permitions, owner-name, group-name)

Does anybody know what´s going wrong.

Thanks

Aberrix 09-14-2011 12:24 PM

it sounds like the files on the local disc have different UID's associated with them than what is probably in the /etc/passwd file. have you tried changing ownership on them?

chown -R user:group

ledical 09-15-2011 01:24 AM

Uid gid
 
Quote:

Originally Posted by Aberrix (Post 4471636)
it sounds like the files on the local disc have different UID's associated with them than what is probably in the /etc/passwd file. have you tried changing ownership on them?

chown -R user:group

I have adjusted the user ID and the group ID in the local /etc/passwd and /etc/group to the numbers of the server. User name and group name are accurately printed as root but not using a user account.

chown -R user:group

has no effect.

Reuti 09-15-2011 05:21 AM

I see such output on an NFS client where the original directory has permissions like drwxr--r--, i.e. the x is missing and the NFS server is not really honoring it in the expected way for group and others, i.e. allow access only to files whose name you know already (but avoids looking inside).

But you have no file server any longer, and you face it locally?

ledical 09-15-2011 09:18 AM

Quote:

Originally Posted by Reuti (Post 4472298)
I see such output on an NFS client where the original directory has permissions like drwxr--r--, i.e. the x is missing and the NFS server is not really honoring it in the expected way for group and others, i.e. allow access only to files whose name you know already (but avoids looking inside).

But you have no file server any longer, and you face it locally?

The data are on a local disc. The disc is automatically mounted using the follwing command in /etc/fstab:

/dev/sdb1 /media/data ext3 defaults 0 2

ls -l as root:

drwxr-xr-x 29 luedemann arzt 4096 17. Jun 09:51 pub

ls -l as user luedemann provides:

d????????? ? ? ? ? ? pub

I have a new file server but do not use anymore nis. Mounting the nfs disc works fine:

drwx--S--- 3 luedemann 1002 4096 8. Sep 08:50

Reuti 09-16-2011 03:45 AM

The directory in question is in /home? I.e. , you have access to the directory one level above?

ledical 09-19-2011 03:20 AM

No the directory is /media/data.

I could solve the problem by changing the rights using the follwing command:

chmod 3775 /media/data

Interestingly, the owner was already set allright and additional group rights were required.


All times are GMT -5. The time now is 01:48 AM.