LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 12-03-2016, 09:15 AM   #1
MotoTom
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Rep: Reputation: Disabled
Read Permission Denied


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
 
Old 12-03-2016, 04:18 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,228

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
Quote:
Originally Posted by MotoTom View Post
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

Last edited by BW-userx; 12-03-2016 at 04:29 PM.
 
Old 12-03-2016, 05:24 PM   #3
MotoTom
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
did you do the

Code:
chown user:group /path/t/dir/harddirve -R
recursive thing?
x
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.
 
Old 12-04-2016, 12:14 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,228

Rep: Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191Reputation: 2191
Quote:
Originally Posted by MotoTom View Post
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.
Code:
UUID=xxxixixixixuxutx6x7x8x9x  /meida/whatever ntfs-3g defaults 0 3

or

/dev/sdxx           /media/whatever   ntfs-3g  defaults 0 3
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.

Last edited by BW-userx; 12-04-2016 at 12:19 PM.
 
Old 12-04-2016, 12:29 PM   #5
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Did you check the proFTPD log?
 
Old 12-04-2016, 07:04 PM   #6
MotoTom
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
For BW-userx:

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.
 
Old 12-04-2016, 07:08 PM   #7
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731
Check the UID of tomb and the GID of users. It's a bit of a long shot, but things don't work if the numeric IDs of users or groups are mismatched.
 
Old 12-04-2016, 07:13 PM   #8
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
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?
 
Old 12-04-2016, 07:15 PM   #9
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Oh, by the way is SELinux enabled and enforcing? That one can get too strict.
 
Old 12-04-2016, 07:46 PM   #10
MotoTom
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
To notKlaatu:

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?
 
Old 12-04-2016, 07:51 PM   #11
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
I suspect your directories has incorrect permission (ie 0744). Can you post

Code:
ls -ld <ftp-folder>
 
Old 12-05-2016, 11:52 AM   #12
MotoTom
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Did the ls -ld thing. Attached is screen grab. Looks OK to me. Also provided a df -hT to show format of the drive.

Thanks for your efforts.
Attached Thumbnails
Click image for larger version

Name:	ls_-ld.jpg
Views:	111
Size:	96.3 KB
ID:	23676  
 
Old 12-05-2016, 12:04 PM   #13
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 417

Rep: Reputation: 74
Thanks for the screen shot. That indeed showed the problem. User 'tomb' is able to traverse the directory but not the people under the 'users' group.

Last edited by c0wb0y; 12-05-2016 at 12:06 PM.
 
Old 12-05-2016, 12:43 PM   #14
MotoTom
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
THANK YOU c0wb0y!

I changed the permissions to 0755 and all is well. It now works with local logons and with ProFTP.

I don't understand why 0744 worked on the old 1.5TB drive but if this works I'll stick with it.

Best,
Tom
 
  


Reply


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
[SOLVED] root denied permission to nfs mounted directory but user can read and write qajaq Linux - Networking 2 03-08-2016 08:53 AM
Cannot copy file even as root (read permission denied) dhamilton Linux - Newbie 10 01-04-2011 07:59 AM
[SOLVED] Try to use tcpdump to read TEST file, but get permission denied. zetareticular Linux - Newbie 4 10-23-2010 11:13 AM
cp read permission denied wolfgang_b Linux - Newbie 3 09-30-2009 12:14 PM
Debian on VBox Read Only File System and Permission Denied Errors The Konqi Kid Debian 5 03-04-2008 05:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration