Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 3rd August 2012, 10:55 AM
Forester Offline
Registered User
 
Join Date: Sep 2011
Posts: 21
linuxfirefox
VLC unable to play read only files

I have recently set up a partition which is read only to normal users. I tried to play a video from here using VLC (which I normally use) but it won't play. It gives the following error:

Code:
File reading failed:
VLC could not open the file "/run/media/user/STORAGE/Storage/video.avi". (Permission denied)
Your input can't be opened:
VLC is unable to open the MRL 'file:///run/media/user/STORAGE/Storage/video.avi'. Check the log for details.
I have no idea where the log file is. When I tried to create a new log file through preferences the file is empty even after I try to run a video file.

I tried running vlc from the console and got this:

Code:
[0x7fc72c012678] filesystem access error: cannot open file /run/media/user/STORAGE/Storage/video.avi (Permission denied)
[0x7fc74c000b78] main input error: open of `file:///run/media/user/STORAGE/Storage/video.avi' failed
Seeing as the normal user has read permissions why does VLC complain about not having permission to access the file. What sort of permissions do I need to give to have VLC play things?
Reply With Quote
  #2  
Old 3rd August 2012, 11:01 AM
Yellowman
Guest
 
Posts: n/a
linuxfirefox
Re: VLC unable to play read only files

Edit /etc/fstab and create a mount point in /mnt instead as /media is for temporary mounts (they are destroyed on reboot) only.
Reply With Quote
  #3  
Old 3rd August 2012, 01:38 PM
Gareth Jones Online
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,711
linuxfirefox
Re: VLC unable to play read only files

Post the output of "mount | grep STORAGE" and "ls -l /run/media/user/STORAGE/Storage/video.avi".

As Yellowman says, if this is an fstab mount, use /mnt not /media or /run/media.
Reply With Quote
  #4  
Old 3rd August 2012, 02:37 PM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
linuxfirefox
Re: VLC unable to play read only files

I always mount in /media and have no problems with that. You won't get a shortcut to the mount on your desktop when you mount in /mnt.
__________________
these command lines are like casino slot machines, every time I input commands NOTHING HAPPENS
Reply With Quote
  #5  
Old 3rd August 2012, 04:49 PM
Forester Offline
Registered User
 
Join Date: Sep 2011
Posts: 21
linuxfirefox
Re: VLC unable to play read only files

Tried mounting it in /mnt there is no difference still cant open video files (can't open ANY files for that matter - always says permission denied). I can open things when I'm root no matter which way it's mounted.

output for "mount | grep STORAGE"
Code:
/dev/sdc5 on /run/media/user/STORAGE type ext3 (rw,nosuid,nodev,relatime,seclabel,data=ordered,uhelper=udisks2)
output for "ls -l /run/media/user/STORAGE/Storage/video.avi".
Code:
-rw-------. 1 root root 1161334784 Mar 18  2007 /run/media/user/STORAGE/Storage/video.avi
As soon as I give myself read/write priveleges I can open whatever I want. Might it be that I need to give the user execute priveleges on the partition as well as read priveleges?

Last edited by Forester; 4th August 2012 at 01:16 AM.
Reply With Quote
  #6  
Old 3rd August 2012, 05:08 PM
errorxp's Avatar
errorxp Offline
Registered User
 
Join Date: Jul 2007
Posts: 371
linuxfirefox
Re: VLC unable to play read only files

You can try to take ownership of the files using chown command:

example:
chown -hR username /mountpoint
__________________
these command lines are like casino slot machines, every time I input commands NOTHING HAPPENS
Reply With Quote
  #7  
Old 4th August 2012, 01:15 AM
Forester Offline
Registered User
 
Join Date: Sep 2011
Posts: 21
linuxfirefox
Re: VLC unable to play read only files

Ok this is strange. I booted up this morning without having changed anything since my last post and now everything works fine.
Reply With Quote
  #8  
Old 4th August 2012, 01:54 PM
Gareth Jones Online
Official Gnome 3 Sales Rep. (and Adminstrator)
 
Join Date: Jul 2011
Location: Leamington Spa, UK
Age: 30
Posts: 1,711
linuxfirefox
Re: VLC unable to play read only files

The mount output looks reasonable.

However:
Quote:
Originally Posted by Forester View Post
output for "ls -l /run/media/user/STORAGE/Storage/video.avi".
Code:
-rw-------. 1 root root 1161334784 Mar 18  2007 /run/media/user/STORAGE/Storage/video.avi
This is read-write for root, and unreadable to normal users. The correct permissions for what you're asking for are "rw-r--r--" (i.e. "chmod a+r /run/.../vidio.avi"). Make sure that the containing directories have "r-x" set for all users too.

Rebooting shouldn't change the permissions, so I've no idea what you changed to make it work...
Reply With Quote
  #9  
Old 4th August 2012, 11:18 PM
Forester Offline
Registered User
 
Join Date: Sep 2011
Posts: 21
linuxfirefox
Re: VLC unable to play read only files

I did give the normal user r/w permissions temporarily in order to be able to play the video then changed it back. Maybe this did something?
Reply With Quote
Reply

Tags
files, play, read, unable, vlc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Unable to play .mp4 files on Fedora 17 TheComputer Using Fedora 3 28th June 2012 12:20 PM
Unable To Play .mkv Files. anuragverma Using Fedora 0 21st November 2011 08:23 PM


Current GMT-time: 19:05 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat