You are not logged in.
Ive been using various linux/BSD distros for several years and recently switched from Gentoo to Arch. So far, I'm loving it. I've just run into an interesting problem that I have never seen before. I have an XFS partition mounted on /mnt/media that I use to store all my music, videos, etc. After the new installation, everything in that partition was owned by root:root with 755 permissions. Normal so far... I wanted to have everything in that folder owned by my user acct so i could write to it so i issued a `chown -R daemontux:users /mnt/media` and then set new permissions on everything with `chmod -R 644 /mnt/media` Here's where the weirdness begins - when i `ls -l /mnt' everything looks good permissions show
drw-r--r-- 21 daemontux users 4096 2007-07-06 05:39 mediabut if i do `ls -l /mnt/media` every file shows up as
?????????? ? ? ? ? ? videosI have tried reseting all permissions to root:root 755 but am getting the same problem. The weirdest thing is that when i `sudo ls -l /mnt/media' everything looks right -
drw-r--r-- 4 daemontux users 137 2007-07-06 05:40 videosI now can't access this folder at all as my user and I really dont want to run amarok and mplayer as root
Any ideas as to what may have happened or where to go from here would be greatly appreciated.
-DaemonTux
Last edited by daemontux (2007-07-09 22:41:07)
Offline
Don't chmod the directory to 644. This removes the executable permission from the folder. Executable on a folder means the ability to browse it, so you are removing your ability to browse the directory. I think leaving it as 755 should work fine. If you want to change all the files to be not executable you probably need a quick script to test each file to see if its a directory before changing the permissions on it.
Offline
Thanks for the help. That seemed to do it... i think ill just set the noexec option in fstab rather than do the script tho.:)
Offline