Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Solved]I need chmod 7777 in order to play my videos?
New Posts  All Forums:Forum Nav:

[Solved]I need chmod 7777 in order to play my videos?

post #1 of 13
Thread Starter 
Well, Fedora LXDE pissed me off last night when an update set SELinux on the war path against my wireless card (don't ask it really doesn't make sense).

So I thought I'd give Bodhi a try and I like it a lot right now. Except, there's this ext4 partition I've had since Fedora 13 or 14 that I store pretty much everything including my videos, and when I try to play any video VLC tells me to read an error log that doesn't exist and says something about can't read the file (I can post the very limited error it spits out if you want). Well, I figured that since I had to chmod 7777 on the partition before in Fedora to get things working I'd do that here. Well, that didn't work exactly. So on some random hunch I went to one of the files I needed to play and chmod 7777 on it and then tried. Poof, VLC can suddenly play that one file now.

So long story to the point; why do I have to chmod each file to 7777 and is there a way I can batch/do them all at once? Like will chmod 7777 to the containing folder change each file or am I stuck having to go file by file? What happens when I add files to the partition? Will I have to manually set their permissions too(that will suck because of how many classes I have to watch)?

Completely random aside: I think Linux devs should stop showing in GUIs the permission settings and make it look like you can change them that way when you never can.
Edited by Rookie1337 - 10/3/11 at 7:41pm
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #2 of 13
I'm guessing it's an ownership problem (for example VLC not opening as root user and root has ownership and settings aren't allowing it). You could look at the ownership of the files and if your user dosen't own it you could do something like

sudo chown -R youruser /path/to/folder

That will recursively give you permissions of all things in that file. Be careful that nothing that could make changes to your system is in that (for example don't do it to root).

you can also chmod -R 777 /path/to/folder (you probably don't need all the way up to 777 by the way, pretty sure 664 would work just fine. Note that if you do 664 then the folder itself won't be executable so you may want to put a 764 on the directory itself or you may see some weird things happen.)

The -R flag for chmod and chown will do it recursively for all files in the folder so take caution when using it.
Edited by Evanagar - 10/2/11 at 2:51pm
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-930 @ 3.9 GIGABYTE GA-X58A-UD3R ASUS 5970 6 GB Mushkin Redline 1600 
Hard DriveOptical DriveOSMonitor
Kingston 64 GB SSD Sony DVD Burner Arch x64 Samsung 27" 
PowerCase
Corsair 850W Antec P182 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-930 @ 3.9 GIGABYTE GA-X58A-UD3R ASUS 5970 6 GB Mushkin Redline 1600 
Hard DriveOptical DriveOSMonitor
Kingston 64 GB SSD Sony DVD Burner Arch x64 Samsung 27" 
PowerCase
Corsair 850W Antec P182 
  hide details  
Reply
post #3 of 13
Thread Starter 
I'll look into which is the problem. The more I looked at it the more it seemed like the entire partition was set so that only root was setup and no other user could do anything but look at the partition. If that's the case then it's just a matter of chown usage right?

Thanks for the suggest I got completely focused on chmod and forgot about chown.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #4 of 13
Quote:
Originally Posted by Rookie1337 View Post
I'll look into which is the problem. The more I looked at it the more it seemed like the entire partition was set so that only root was setup and no other user could do anything but look at the partition. If that's the case then it's just a matter of chown usage right?

Thanks for the suggest I got completely focused on chmod and forgot about chown.
Yeah, because you changed systems the ownership didn't transfer over (some cases the system will actually remember ownerships, but this is still a rarity to the best of my knowledge). I've had similar problems with some of my VMs and virtual discs and the majority of the time chown has worked for me. Generally if you can get the file to work as root but not as a typical user, it's either permissions or ownership related; but because it was the whole partition I'm almost positive it's ownership.

Another thing that may be going on here is that the device you are trying to access has proper permissions for a group such a storage, and your user on the new system is not a member of that group.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-930 @ 3.9 GIGABYTE GA-X58A-UD3R ASUS 5970 6 GB Mushkin Redline 1600 
Hard DriveOptical DriveOSMonitor
Kingston 64 GB SSD Sony DVD Burner Arch x64 Samsung 27" 
PowerCase
Corsair 850W Antec P182 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-930 @ 3.9 GIGABYTE GA-X58A-UD3R ASUS 5970 6 GB Mushkin Redline 1600 
Hard DriveOptical DriveOSMonitor
Kingston 64 GB SSD Sony DVD Burner Arch x64 Samsung 27" 
PowerCase
Corsair 850W Antec P182 
  hide details  
Reply
post #5 of 13
Thread Starter 
Well, chown definitely solved the problem. Still can't believe I forgot about it. Thanks again.
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
     
CPUGraphicsRAMHard Drive
Intel Core m3-6Y30 Intel HD515 8GB 1866DDR3L Micron M600 MTFDDAV256MBF M.2, 256 GB 
CoolingOSOSMonitor
Fanless Win10 Home x64 Kubuntu 16.04 (requires Linux kernel 4.5/4.6) 13.3 inch 16:9, 1920x1080 pixel, AU Optronics A... 
CPUMotherboardGraphicsRAM
AthlonIIX4 640 3.62GHz (250x14.5) 2.5GHz NB Asus M4A785TD-M EVO MSI GTX275 (Stock 666) 8GBs of GSkill 1600 
RAMHard DriveHard DriveHard Drive
4GBs of Adata 1333 Kingston HyperX 3k 120GB WD Caviar Black 500GB Hitachi Deskstar 1TB 
Optical DriveCoolingOSOS
LG 8X BDR (WHL08S20) Cooler Master Hyper 212+ Kubuntu x64 Windows 7 x64 
OSMonitorPowerCase
Bodhi Linux x64 Acer G215H (1920x1080) Seasonic 520 HAF912 
CPUMotherboardGraphicsRAM
N450 1.8GHz AC and 1.66GHz batt ASUS proprietary for 1001P GMA3150 (can play bluray now!?) 1GB DDR2 
Hard DriveOptical DriveOSOS
160GB LGLHDLBDRE32X Bodhi Linux Fedora LXDE 
OSOSMonitorKeyboard
Kubuntu SLAX 1280x600 + Dell 15inch Excellent! 
PowerCase
6 cells=6-12hrs and a charger 1001P MU17 Black 
  hide details  
Reply
post #6 of 13
cant you reset the user defaults. like new users or root user start with "whatever value you want" We wen over this in my class a few weeks back i just cant seem to remember how to go about it.
Coming Soon!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K ASRock P67 EXTREME4 GEN3 Sapphire Toxic HD 6950 2GB G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveOSCase
Crucial m4 128gb (boot/games), SAMSUNG F3 1tb Windows 7 Ultimate, Fedora 14 Corsair 650D 
  hide details  
Reply
Coming Soon!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K ASRock P67 EXTREME4 GEN3 Sapphire Toxic HD 6950 2GB G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveOSCase
Crucial m4 128gb (boot/games), SAMSUNG F3 1tb Windows 7 Ultimate, Fedora 14 Corsair 650D 
  hide details  
Reply
post #7 of 13
umask- http://www.cyberciti.biz/tips/unders...lue-usage.html
If this is what youre talkin about.
Coming Soon!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K ASRock P67 EXTREME4 GEN3 Sapphire Toxic HD 6950 2GB G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveOSCase
Crucial m4 128gb (boot/games), SAMSUNG F3 1tb Windows 7 Ultimate, Fedora 14 Corsair 650D 
  hide details  
Reply
Coming Soon!
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel Core i5-2500K ASRock P67 EXTREME4 GEN3 Sapphire Toxic HD 6950 2GB G.SKILL Ripjaws X Series 8GB (2 x 4GB) 
Hard DriveOSCase
Crucial m4 128gb (boot/games), SAMSUNG F3 1tb Windows 7 Ultimate, Fedora 14 Corsair 650D 
  hide details  
Reply
post #8 of 13
It seems like most guides and documentation etc... always and only mentions two types of permissions 777 and 664. I think it's really important early on to learn how permissions work and how to actually use chmod, so you don't have too much access and leave yourself too open. It's actually pretty simple to understand and there are two separate syntax if you have trouble remembering the numbers.

If you want to view something's permissions use:
Code:
$ ls -l
most people like to alias this to just: ll.

Code:
$ chmod ABCD file
A = user permissions
B = group permissions
C = other permissions
D = all permissions (this one is rarely used)

Now for the numbers:
1 = execute
2 = write
4 = read

Why does "chmod 777" make everything as open as possible? 1+2+4=7 read,write,execute and then for all three groups. Just add the numbers of what options you want together to get them together.

Let's break down "chmod 664". 6=4+2. 4 is read. 2 is write. So the first number means that the 'user' has ONLY read and write access, he cannot execute. The next number is also a 6, so that means that the 'group' has ONLY read and write access, they cannot execute. The final number is 4. 4=read. So, the 'other' can only read the file; they cannot write or execute.


That a little too hard? Okay there's a little bit easier:
Code:
$ chmod u+rwx,g+rwx,o+rwx,a+rwx file
u,g,o,a is user, group, other, all just like before
you can use + or - in order to add or remove the permissions you put afterwards
if you use = instead it will clear all prior permissions and only assign what you feed it
r,w,x is read write execute
Edited by Jimi - 10/4/11 at 1:47am
post #9 of 13
While Umask is a helpful tool, I don't think that would work for his problem. If I'm reading his situation correctly he created the filesystem on some linux distro and has been changing his distro around while keeping files on that disc(logical or physical, not sure on that). When he re-installed with his most recent distro his current user didn't have permissions on the disc. Umask (to my knowledge) only affects folder permissions based on the setting after setup, and the files on this disc were already created on a prior system.

If my knowledge of this topic is incorrect or someone knows more about permissions and transferring a disc between installs I'd be interested to know. Personally I've always just done a chown and never dove into the matter any deeper so admittedly my knowledge of how permissions get handled at install are lacking.

Quote:
Originally Posted by 10halec View Post
umask- http://www.cyberciti.biz/tips/unders...lue-usage.html
If this is what youre talkin about.
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-930 @ 3.9 GIGABYTE GA-X58A-UD3R ASUS 5970 6 GB Mushkin Redline 1600 
Hard DriveOptical DriveOSMonitor
Kingston 64 GB SSD Sony DVD Burner Arch x64 Samsung 27" 
PowerCase
Corsair 850W Antec P182 
  hide details  
Reply
My System
(13 items)
 
  
CPUMotherboardGraphicsRAM
i7-930 @ 3.9 GIGABYTE GA-X58A-UD3R ASUS 5970 6 GB Mushkin Redline 1600 
Hard DriveOptical DriveOSMonitor
Kingston 64 GB SSD Sony DVD Burner Arch x64 Samsung 27" 
PowerCase
Corsair 850W Antec P182 
  hide details  
Reply
post #10 of 13
Quote:
when I try to play any video VLC tells me
/thread

http://trac.videolan.org/vlc/query?s...order=priority

Results (1 - 100 of 1209)

USE "SMPLAYER"

sounds like you may not be the owner of the file and just a 644 and/or chow nay help.
stable again
(25 items)
 
  
CPUCPUMotherboardGraphics
E5-2687W E5-2687W ASUS Z9PED8-WS EVGA GTX 570 (Linux host) 
GraphicsRAMHard DriveHard Drive
EVGA GTX 970 FTW (win7 guest) 64GB G.SKILL 2133 2x Crucial M4 256GB raid1 4x 3TB raid 10 
CoolingCoolingCoolingCooling
2x Apogee HD  2x RX 480 2x MCP 655 RP-452x2 rev2 (new) 
CoolingCoolingOSOS
16x Cougar Turbine CFT12SB4 (new) EK FC 580 Gentoo (host) Gentoo (x23 guests) 
OSMonitorMonitorPower
windows 7 (guest w/ vfio-pci) Viewsonic 23" 1080P Viewsonic 19" Antec HCP Platinum 1000 (new) 
CaseOtherOther
Case Labs TH10 (still the best ever) 2x Lamptron FC-5 IOGEAR 2 way DVI KVM Switch 
  hide details  
Reply
stable again
(25 items)
 
  
CPUCPUMotherboardGraphics
E5-2687W E5-2687W ASUS Z9PED8-WS EVGA GTX 570 (Linux host) 
GraphicsRAMHard DriveHard Drive
EVGA GTX 970 FTW (win7 guest) 64GB G.SKILL 2133 2x Crucial M4 256GB raid1 4x 3TB raid 10 
CoolingCoolingCoolingCooling
2x Apogee HD  2x RX 480 2x MCP 655 RP-452x2 rev2 (new) 
CoolingCoolingOSOS
16x Cougar Turbine CFT12SB4 (new) EK FC 580 Gentoo (host) Gentoo (x23 guests) 
OSMonitorMonitorPower
windows 7 (guest w/ vfio-pci) Viewsonic 23" 1080P Viewsonic 19" Antec HCP Platinum 1000 (new) 
CaseOtherOther
Case Labs TH10 (still the best ever) 2x Lamptron FC-5 IOGEAR 2 way DVI KVM Switch 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › [Solved]I need chmod 7777 in order to play my videos?