Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-05-2006, 02:32 AM   #1
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
root can access a partition and see owners/groups/perms, user gets question marks

I've been shifting files around my drives a lot during the last 2 days (just got rid of windows and around 600gb of NTFS), and all of a sudden, one of my partitions went haywire - but only for the regular user, root seems to be able to access the partition as normal.

ls illustrates the problem effectively I think
fileinator:/home/gc/azureus# ls -l /mnt/data1
total 3548
drwxr-xr-x  2 gc   gc       107 2006-10-03 22:20 azsmrc
drwxr-xr-x 28 gc   gc      4096 2006-03-12 14:50 Bootlegs!
-rwxr-xr-x  1 gc   gc   3616838 2006-09-30 11:14 IMG_9058.JPG
drwxr-xr-x  2 root root       6 2006-10-04 21:42 lost+found
dr-xr-xr-x 34 gc   gc      4096 2006-09-30 05:03 !movies
drwxr-xr-x  3 gc   gc        24 2006-10-03 19:10 !tv
drwxr-xr-x 11 gc   gc      4096 2006-10-03 17:44 windows.c
drwxr-xr-x  9 gc   gc       142 2006-10-03 18:22 windows.d
fileinator:/home/gc/azureus# exit
gc@fileinator:~/azureus$ lsl /mnt/data1
total 0
?--------- ? ? ? ?                ? /mnt/data1/azsmrc
?--------- ? ? ? ?                ? /mnt/data1/Bootlegs!
?--------- ? ? ? ?                ? /mnt/data1/IMG_9058.JPG
?--------- ? ? ? ?                ? /mnt/data1/lost+found
?--------- ? ? ? ?                ? /mnt/data1/!movies
?--------- ? ? ? ?                ? /mnt/data1/!tv
?--------- ? ? ? ?                ? /mnt/data1/windows.c
?--------- ? ? ? ?                ? /mnt/data1/windows.d
I think I'm dealing with the problem as I post this (I'm copying the 92gigs on data1, as root, to another partition and then I'm just going to reformat the partition). it seems to be working (it's going to take a while to copy, but mc is plugging away).

What I want to know is how did I do this? I think it was probably a bungled chmod/grp/own operation, or rather args meant for say, chmod, being used for chgrp due to careless use of the bash history. If that was it though, I don't understand why it totally borked the filesystem for user, but didn't appear to affect root at all.

this is an xfs filesystem btw.

even just a link to info on what this is would be muchly appreciated
Old 10-05-2006, 07:48 AM   #2
Dutch Master
Senior Member
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
I too think this is a permissions issue. On how you did it: I don't know as I can't browse your bash-history Btw, I hope that last ls -l command is a typo when copying data to your message
Old 10-05-2006, 12:30 PM   #3
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Original Poster
Rep: Reputation: 35
thanks for your reply, I guess I'll be going through the bash history later! see if I can't find the command that did it.

the second ls is an alias for ls -lh that is only good for the user. I'm always hitting the zero instead of - and forgetting the h altgether as well.

edit: I think I found the culprit, though I'm not positive.

chgrp -R gc /mnt/data1/*

could that have done it (the recursive arg in combination with *)?

Last edited by lurko; 10-05-2006 at 01:04 PM.


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
slackware owners and groups BiThian Slackware 2 08-29-2006 01:34 PM
Basic fstab question -- cant' set groups or use as user. jcubed Linux - Newbie 6 12-22-2005 06:47 PM
Backup partition keeping file owners the same Sledge Linux - Newbie 1 05-14-2005 10:14 PM
non-root user cannot access Windows partition curmudgeon42 Linux - General 3 08-13-2004 05:33 PM
ppp as non root w/o changing perms (slackware) xmnemonic Linux - Networking 0 08-02-2003 02:03 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:30 PM.

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