Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I replaced my 1.5TB USB HD with a 4TB unit on my Arch Linux Arm headless PogoPlug server. It is formatted as ext4 and it works just fine under my account.
I have other users that I want to be able to read-only from this drive, using ProFtp, as they did on the old drive but it's not working.
The ownership of the drive is the same as it was on the old one (tomb:users) as are the permissions "0744". All of my users are members of "users". But clicking the symbolic link in Filezilla is getting an "open for read permission denied" error.
I get the same error when logging onto the PogoPlug using their user credential. Logging on with my credentials is no problem. When logged on as one of my users I get the error message "ls: cannot access Movies: Permission denied".
I noted that the symbolic link has root:root as user:group. Does this matter? if so How do I change it?
What else besides executing the proper chown and chmod commands do I need to do? BTW fsck gives a clean result.
I replaced my 1.5TB USB HD with a 4TB unit on my Arch Linux Arm headless PogoPlug server. It is formatted as ext4 and it works just fine under my account.
I have other users that I want to be able to read-only from this drive, using ProFtp, as they did on the old drive but it's not working.
The ownership of the drive is the same as it was on the old one (tomb:users) as are the permissions "0744". All of my users are members of "users". But clicking the symbolic link in Filezilla is getting an "open for read permission denied" error.
I get the same error when logging onto the PogoPlug using their user credential. Logging on with my credentials is no problem. When logged on as one of my users I get the error message "ls: cannot access Movies: Permission denied".
I noted that the symbolic link has root:root as user:group. Does this matter? if so How do I change it?
What else besides executing the proper chown and chmod commands do I need to do? BTW fsck gives a clean result.
Any suggestion will be greatly appreciated.
Best,
Tom
did you do the
Code:
chown user:group /path/t/dir/harddirve -R
recursive thing?
x
too I see it is a link thing???
Code:
root:root as user:group.
logic question.
if a dir or file has root:root ownership can a normal user access it and read and write anything on or within it?
if no , then do you think that this permissions methodology that is used within Linux, and Windows, and UNIX and such should then extend across the board?
if no then why?
would that not break the purpose of it?
now to answer your question,
YES! delete it then user make a new one. not root
Yes. And I checked each directory in the path. All have the correct UserName:Group.
Quote:
I see it is a link thing???
Code:
root:root as user:group.
logic question.
if a dir or file has root:root ownership can a normal user access it and read and write anything on or within it?
if no , then do you think that this permissions methodology that is used within Linux, and Windows, and UNIX and such should then extend across the board?
if no then why?
would that not break the purpose of it?
now to answer your question,
YES! delete it then user make a new one. not root
I tried that, logging on as one of my users. It didn't work. It stopped recognizing folders immediately after the mount point
Code:
/media/Storybook
The rest of the path
Code:
/D-Drive/Media/iTunesMedia/Movies
was not recognized by the TAB. There's a clue in there.
Yes. And I checked each directory in the path. All have the correct UserName:Group.
I tried that, logging on as one of my users. It didn't work. It stopped recognizing folders immediately after the mount point
Code:
/media/Storybook
The rest of the path
Code:
/D-Drive/Media/iTunesMedia/Movies
was not recognized by the TAB. There's a clue in there.
OIC !
that has to be a ntfs format if you got itunes, yes???
install ntfs-3g and add that to your line in fstab it you are mounting it from there.
I'd mount it via your /media directory just add a sub directory within it.
if that is not it, and it is in fact a ext4 or such format their is a trick whenver I experience what you are, and that is. I open a file manage then go to that hdd and selected everything on it, then right click, then under property I chooe to allow everything permissions and then let that file manager deal with it. that works for me in the end. After I've done the chmod 775 -R and chown user:group -R and it fails to work.
Linux Permissions do not work on FAT or NTFS format, so you just give the subDirectroy within /media the permissions for who ever you want to have access to that hdd.
First, the drive is absolutely formatted at ext4. The iTunesMedia is from back in the day when I owned some apple devices. I have none now. I kept the directory structure simply because I was too lazy to change it everywhere it needs to be changed.
I guess the way to do the file manager trick is to disconnect it from the headless Popgplug, connect to a Linux box with a GUI and try it there.
For c0wb0y:
I did look at the ProFTP logs and saw nothing related to this issue though I did see someone named Alex tried to log on and I have no idea who the hell Alex is. This does seem to be an account permission issue since I get the same error when I log on as one of my users.
When you say "0744", I would assume that those are for files only and the folders permissions and ownership are properly set. Are you able to recheck those?
Did you cross-checked the allowed users/groups in proftpd config vs what you are expecting?
UID:GID are numerically correct throughout the entire path.
To c0wb0y:
SELinux is not running on this box.
I chose 0744 so my users could only read. I am the only one who should have full access.
As to ProFTP conf file, I haven't checked but it was running fine with the old 1.5TB disk. In fact it still runs fine if connect to the old drive instead of the new one. With the old drive connected I can also access the Movies folder using the symlink when logged as another user. That tells me it's something local to the drive. But what?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.