LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-19-2018, 08:35 AM   #1
petevick
LQ Newbie
 
Registered: Mar 2017
Location: Heacham, Norfolk, UK
Posts: 11

Rep: Reputation: Disabled
new folder permissions issue


Hi, I'm using Linux Mint 18.3. I have an issue when creating a new folder on my internal hard drive formatted to ext4. At the moment the HD owner is 'pete' and the group owner is 'root' and all three Folder Access fields are 'Create and delete files'
If I create a new folder the owner is still 'pete' but the group owner is now also 'pete' and the third Folder Access field is 'Access files'.

How do I make any new folder inherit the root folder permissions ?
 
Old 01-19-2018, 10:13 AM   #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,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
use root
Code:
userx@solus3:~
$ sudo su
root@solus3 /home/userx # mkdir rooty
drwxr-xr-x  2 root  root     4096 Jan 19 10:14 rooty

root@solus3 /home/userx # chown userx rooty
root@solus3 /home/userx # chown userx rooty
why are you getting user : root ( group ) on your creation of a dir being a user?

you can make root group the primary group for pete, but you'd have to think your implementations over about that, how are they going to be used and accessed and by whom?

Last edited by BW-userx; 01-19-2018 at 10:20 AM.
 
1 members found this post helpful.
Old 01-19-2018, 11:50 AM   #3
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Just a couple of quick questions.

What file manager are you using that shows you 'Create and delete files' and 'Access files'? I'm more used to rwx permissions and don't know how these descriptions of yours exactly equate to those.

Why is it that you want the group set to root? What are you trying to do?
 
1 members found this post helpful.
Old 01-20-2018, 06:15 AM   #4
petevick
LQ Newbie
 
Registered: Mar 2017
Location: Heacham, Norfolk, UK
Posts: 11

Original Poster
Rep: Reputation: Disabled
I use Nemo file manager.

Having looked into this a bit more, my main problem is that if I copy photo files from my camera to a folder on the hard drive, those files are showing no group access (and therefore not seen by Plex), I've tried both root and pete as group owners. Permissions for the folder look ok, at the moment owner and group is pete and all folder access is set to 'Create and delete files'. I just don't get it.
 
Old 01-20-2018, 06:44 AM   #5
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by petevick View Post
I use Nemo file manager.

Having looked into this a bit more, my main problem is that if I copy photo files from my camera to a folder on the hard drive, those files are showing no group access (and therefore not seen by Plex), I've tried both root and pete as group owners. Permissions for the folder look ok, at the moment owner and group is pete and all folder access is set to 'Create and delete files'. I just don't get it.
It would probably be best to show us what permissions you currently have;

Can you open a terminal window and type the following:

Code:
ls -la /path/to/folder
Replace "/path/to/folder" with the actual path to the folder in question.

Last edited by jsbjsb001; 01-20-2018 at 06:46 AM.
 
1 members found this post helpful.
Old 01-20-2018, 09:14 AM   #6
petevick
LQ Newbie
 
Registered: Mar 2017
Location: Heacham, Norfolk, UK
Posts: 11

Original Poster
Rep: Reputation: Disabled
OK, I've given up trying to fight ext4 permissions and reformatted the drive as ntfs, should have done that in the first place as it's just a data drive.

Thanks for all the help, I appreciate it.

Last edited by petevick; 01-20-2018 at 09:15 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hou to mount a folder with the current owner:group and folder permissions? bmxakias Linux - Newbie 20 11-28-2017 12:22 PM
Changing folder permissions and its sub folder and files? stratotak Linux - Newbie 6 12-29-2011 05:11 AM
Folder permissions issue...Ideas? cwwilson721 Slackware 4 11-19-2009 10:07 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Folder Permissions Issue Aman9090 Slackware 2 10-17-2003 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:10 AM.

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