Jump to content

Linux permissions (yet again....)


Recommended Posts

johnsonb
Posted

I have been running emby under windows and I'd like to move to Linux. I tried a short while back however I could not get permissions correct. Well today I tried again.

I created a group emby

I entered the commands:

chmod -R g+r /home/liveuser/Videos

setfacl -m user:emby:rxw /home/liveuser/Videos

I am nowhere, I cannot see the Videos directory under add library. I have looked around online and could not any solution.

I am a neophyte when it comes to Linux,  however it cannot be this complicated.

thanks all

Posted

Is the share local or is it mounted from a network source? you testing all this from a live CD given the user is called liveuser?

There is a great guide here:

It depends a lot on where the files are, local/network, and who is the owner of them.

johnsonb
Posted

Yes this is from a  liveuser cd (fedora). Before I install it I want to be sure I can get the permissions set correctly.

I'll look over the link you sent.

thanks, Bj

johnsonb
Posted
1 hour ago, XcOM9876 said:

Is the share local or is it mounted from a network source? you testing all this from a live CD given the user is called liveuser?

There is a great guide here:

It depends a lot on where the files are, local/network, and who is the owner of them.

Well I made a Mint Live USB since Mint is what I plan (hope....) to use. I boot up, touch nothing and my testing folder library is seen just fine. I am not disparaging Fedora or trumpeting Mint. It just worked this way. Now to install and hope the luck lasts using my usb storage.

thanks, Bj

johnsonb
Posted

Hmmmm. well usb drive rights are different I see. I cannot successfully execute chown (operation is not permitted) or setfacl (operation is not supported). Are USB drives really treated that differently.?

thanks

Posted

You should be able to set permissions using root on a USB stick providing it's not locked, it's a bit old but this might help you:

https://forums.linuxmint.com/viewtopic.php?t=228865

It's worth noting though at Live CD's don't always function 100% due to them being live, Linux Mint is a good option, just follow any guides for Debian/Ubuntu and you'll be fine, to be honest if your not going to actively use the machine and you can do it via command line, then Ubuntu Server 20.04 is a very good option, I use a mix of Ubuntu 20.04 and CentOS8 for my servers, you get much better performance due to there not being any GUI loaded and them being trimmed down.

Posted

Also what format is the USB storage in? NTFS, EXT3/4, BTFS, FZ?

johnsonb
Posted
1 hour ago, XcOM9876 said:

You should be able to set permissions using root on a USB stick providing it's not locked, it's a bit old but this might help you:

https://forums.linuxmint.com/viewtopic.php?t=228865

It's worth noting though at Live CD's don't always function 100% due to them being live, Linux Mint is a good option, just follow any guides for Debian/Ubuntu and you'll be fine, to be honest if your not going to actively use the machine and you can do it via command line, then Ubuntu Server 20.04 is a very good option, I use a mix of Ubuntu 20.04 and CentOS8 for my servers, you get much better performance due to there not being any GUI loaded and them being trimmed down.

Hi. The usb drive is not locked and it is in NTFS. The livecd is because I wanted to get the usb library sorted out before I install Mint. If I cannot get this working I will have to go back to Windows for my emby box. Thanks

 

Posted

So NTFS permissions can't be set via standard CHMOD, it's set based on the root mount settings, the below is an example mount settings to enable NTFS read/write.

 

sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever

 
johnsonb
Posted
26 minutes ago, XcOM9876 said:

So NTFS permissions can't be set via standard CHMOD, it's set based on the root mount settings, the below is an example mount settings to enable NTFS read/write.

 


sudo mount -t ntfs -o rw,auto,user,fmask=0022,dmask=0000 /dev/whatever /mnt/whatever

 

thanks for the info. That explains alot.

Bj

  • Like 1
johnsonb
Posted

Well it still fails even using FAT32. It was not meant to me. I ordered two drive caddys and I'll mount the drives internally, that should clear up any rights issues and let me stay with Mint.

Bj

johnsonb
Posted

I mounted the drives in the case, applied the right permissions and I was off to the races. I'm grateful I could stay with Linux Emby. The Windows box was slow and updating all the time, drove me nuts.

Bj

Posted

Thanks for the feedback.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...