Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-03-2009, 11:45 AM   #1
Registered: Aug 2003
Location: MO, USA
Distribution: Mandrake 9.1/9.2(Laptop)
Posts: 117

Rep: Reputation: 15
Suddenly permissions are unknown?

I recently upgraded my system to Ubuntu 9.04. Everything was going fine until I installed the Mythweb plugin. All of a sudden, all my recording have been labeled "Override recording -- Don't record". I did some digging and discovered the permissions on my TV storage directory look like this:

-????????? ? ? ? ?                ? 4054_20090820220000.mpg
-????????? ? ? ? ?                ? 4054_20090820220000.mpg.png
-????????? ? ? ? ?                ? 4054_20090820223000.mpg
-????????? ? ? ? ?                ? 4054_20090820223000.mpg.png
-????????? ? ? ? ?                ? 4067_20090626180000.mpg
-????????? ? ? ? ?                ? 4067_20090626180000.mpg.png
-????????? ? ? ? ?                ? 4087_20090713112500.mpg.png
d????????? ? ? ? ?                ? Live
d????????? ? ? ? ?                ? lost+found
d????????? ? ? ? ?                ? Movies
d????????? ? ? ? ?                ? News
and mythtv-setup says the directory is not writable and that the subdirectories don't exist. I ran:

sudo chown -R mythtv:mythtv /TV
with no effect.

I can see the file permissions when I run ls as root:
$ sudo ls -l /TV
-rw-rw-r--  1 mythtv mythtv 2331447296 2009-08-31 19:52 4067_20090626180000.mpg
-rw-rw-r--  1 mythtv mythtv     111805 2009-08-31 19:52 4067_20090626180000.mpg.png
-rw-rw-r--  1 mythtv mythtv     110331 2009-08-31 19:52 4087_20090713112500.mpg.png
drw-rw-r--  2 mythtv mythtv       4096 2009-09-02 20:36 Live
drw-rw-r--  2 mythtv mythtv      16384 2009-08-31 18:56 lost+found
drw-rw-r-- 28 mythtv mythtv       4096 2009-08-31 20:42 Movies
drw-rw-r--  2 mythtv mythtv       4096 2009-09-02 20:38 News
but using Nautilus i get an empty directory and Myth still says the directories are not writable. I have never encountered this before. Even if I change the ownership to myusername, I am unable to cd into the /TV directory and the permissions appear as question marks. I used mythweb before and this was not a problem. What happened?
Old 09-03-2009, 01:53 PM   #2
LQ Newbie
Registered: Sep 2009
Posts: 1

Rep: Reputation: 1
Missing permission on directories:

Hi GTBlackwell,

Your problem is straightforward, but how it came about may not be.

In Linux/Unix, a directory's permissions are interpreted a little differently than those of a standard data file.

Read permission lets you see the names of the files in the directory (that is, the contents of the directory inode itself) but does not by itself let you read the files. Write permission lets you create files (put a new filename, etc. into the directory inode) but does not by itself let you put any content into the file you have created.

To actually access the files pointed to by the directory you need execute permission to the directory itself. (In the Windows world, this corresponds to the "directory traversal" permission, which you can have even if you do not have read permissions to the directory....)

In general, regardless of the ownership, a directory will be world-executable as well as world-readable. Try "chmod - R 755" on /TV. (Quick and dirty) The user mythtv will, of course, need write permissions as well.

The more serious problem is what changed to cause the default permissions on the created directories to be incorrect, and I hope someone else can be of more help there.


Last edited by duggla; 09-03-2009 at 02:03 PM. Reason: typos


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
Suddenly no sound nappy501 Linux - Software 13 08-21-2009 08:49 AM
Unknown Netbios Packets to Unknown Network fukawi2 Linux - Networking 2 09-17-2007 06:41 PM
Suddenly no network henningolsen36 Linux - Newbie 2 05-27-2005 02:48 AM
permissions suddenly changed for /tmp rioguia Linux - Security 1 12-12-2004 12:34 PM
suddenly unable to change permissions (very strange) hobylinux Linux - Hardware 5 09-15-2003 06:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 AM.

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
Open Source Consulting | Domain Registration