LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-14-2011, 10:23 AM   #1
ledical
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Rep: Reputation: Disabled
Unhappy 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
 
Old 09-14-2011, 12:24 PM   #2
Aberrix
LQ Newbie
 
Registered: Sep 2011
Distribution: RHEL, AIX
Posts: 5

Rep: Reputation: Disabled
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
 
Old 09-15-2011, 01:24 AM   #3
ledical
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Uid gid

Quote:
Originally Posted by Aberrix View Post
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.
 
Old 09-15-2011, 05:21 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,319

Rep: Reputation: 252Reputation: 252Reputation: 252
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?
 
Old 09-15-2011, 09:18 AM   #5
ledical
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Reuti View Post
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
 
Old 09-16-2011, 03:45 AM   #6
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 11.4
Posts: 1,319

Rep: Reputation: 252Reputation: 252Reputation: 252
The directory in question is in /home? I.e. , you have access to the directory one level above?
 
Old 09-19-2011, 03:20 AM   #7
ledical
LQ Newbie
 
Registered: Sep 2011
Posts: 16

Original Poster
Rep: Reputation: Disabled
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mounted UFS ro under linux but unable to read all folders panseluta Linux - Server 2 07-02-2011 02:31 PM
unable to read mounted ipod gymnart Linux - Software 5 03-20-2008 02:55 PM
Why can't I set user read access for mounted ntfs drives? sureshot324 Linux - Software 6 01-08-2006 10:42 PM
cdrom Mounted but Non Root User Can't Read tortle Slackware 7 11-22-2005 05:33 AM
Fedora 3: Unable to mount floppy disc as a normal user peter1608 Linux - Newbie 3 08-12-2005 04:44 PM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration