LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-08-2023, 07:07 AM   #1
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
ACL (permissions)


I got one laptop, two or more user logins, just me. so 1 user, with multiple user names on one laptop. Forbade the why, and just work with me here.

NTFS
Code:
$ getfacl /media/ntfs
getfacl: Removing leading '/' from absolute path names
# file: media/ntfs
# owner: userx
# group: users
user::rwx
group::rwx
other::r-x
EXT4
Code:
userx@Ubutt-Butt:~$ getfacl /media/storage
getfacl: Removing leading '/' from absolute path names
# file: media/storage
# owner: userx
# group: users
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:users:rwx
default:mask::rwx
default:other::r-x
EXT4
Code:
userx@Ubutt-Butt:~$ getfacl /media/data
getfacl: Removing leading '/' from absolute path names
# file: media/data
# owner: userx
# group: users
user::rwx
group::rwx
other::r-x
default:user::rwx
default:group::rwx
default:group:users:rwx
default:mask::rwx
default:other::r-x
on this NTFS partition with that new ntfs programmed into the kernel as that is what I read about it, and putting it back to ntfs3g gave me strange results, aka booting errors.
OS's
Slackware,
Ubuntu Studio 22.10 - for fully accessible tablet
windows

on my ntfs drive:

I mostly notice it because that is what I am using for this project with blender. if one user creates a file and i go in to edit it with another user it does not allow me to save it.
User IDs
Code:
uid=1001(blender) gid=100(users) groups=100(users),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),134(lxd),999(sambashare)
User IDs
Code:
uid=1000(userx) gid=1000(userx) groups=1000(userx),4(adm),24(cdrom),27(sudo),29(audio),30(dip),46(plugdev),100(users),122(lpadmin),999(sambashare)
both distros the user and main group is the same IDs for compatibility. Using the 'users' group to "try" and control both read a write executable through the "users" group, but it is not working (all of the time, or lately)

Code:
blender@Ubutt-Butt:/home/userx
$ ls -la /media/ntfs
total 833792
drwxrwxr-x 1 userx   users     28672 Feb  7 17:10  .
drwxr-xr-x 9 root    root       4096 Feb  4 10:40  ..
drwxrwxrwx 1 userx   users         0 Jan 20 13:16 '$RECYCLE.BIN'
drwxrwxr-x 1 userx   users     32768 Jan 28 16:49  blender-videos
drwxrwxrwx 1 userx   users         0 Feb  7 17:04  BL_proxy

-rw-r--r-- 1 blender users    375194 Feb  7 17:15  face.png

drwxrwxr-x 1 userx   users      4096 Feb  7 20:16  futurama-heads
-rw-rw-r-- 1 userx   users 110690067 Aug 30 11:46 'How to Paint Skin Like Disney Characters in Blender (Full Guide)-xIk3gF53cig.mp4'
-rw-rw-r-- 1 userx   users  28245132 Jan 23 20:28  HuionTablet_v15.0.0.89.202205241352.x86_64.deb
-rw-rw-r-- 1 userx   users   7069104 Jan 28 10:55  human-skin-pratice-file_V1.blend
-rw-rw-r-- 1 userx   users   7876836 Jan 28 15:17  human-skin-pratice-file_V2.blend
-rw-rw-r-- 1 userx   users   7863748 Jan 28 14:33  human-skin-pratice-file_V2.blend1
-rw-rw-r-- 1 userx   users     45025 Jan 25 11:17  istockphoto-1362875586-1024x1024.jpg
-rw-r--r-- 1 userx   users    170179 Feb  6 09:59  _jadevanillahair.jpg
some files are saved with both user and group rw permissions,and some ware not.

does anyone have a method to fix that so that regardless of who created the file if a user is in a designated group (users) they too will have read, write, and or executable permissions on that file as well?

Last edited by BW-userx; 02-08-2023 at 07:09 AM.
 
Old 02-08-2023, 11:46 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,664

Rep: Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710Reputation: 2710
NTFS ACLs are Windows style and do not translate directly (some of them AT ALL) into *nix ACLs. You cannot properly manage NTFS ACLs form Linux, or Linux ACLs from Windows: it will always fail at some non-trivial point. Often in disturbing and confusing ways. Oh, and at the worst time.
 
Old 02-08-2023, 03:20 PM   #3
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

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by wpeckham View Post
NTFS ACLs are Windows style and do not translate directly (some of them AT ALL) into *nix ACLs. You cannot properly manage NTFS ACLs form Linux, or Linux ACLs from Windows: it will always fail at some non-trivial point. Often in disturbing and confusing ways. Oh, and at the worst time.
well, it use to be windows had no permissions (ntfs3g)in linux making it nice to not have to worry about this.
 
Old 02-08-2023, 09:40 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,668
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
Best strategy now is to firmly set the intended permissions on "the side" – probably Windows in this case – "which actually holds the data." Then, nevermind the rules systems which might hold on the "foreign side," since these don't actually matter. Whatever exists is merely a mapping from one [incompatible ...] context to the other.

Last edited by sundialsvcs; 02-08-2023 at 09:42 PM.
 
2 members found this post helpful.
Old 02-09-2023, 09:40 AM   #5
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

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by sundialsvcs View Post
Best strategy now is to firmly set the intended permissions on "the side" – probably Windows in this case – "which actually holds the data." Then, nevermind the rules systems which might hold on the "foreign side," since these don't actually matter. Whatever exists is merely a mapping from one [incompatible ...] context to the other.
I guess I'll have to go into windows and figure out how to set permissions on there drives now. and see what that does.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ACL (access and default access ACL) nocandcan Linux - Security 12 04-13-2015 04:09 AM
ACL vs default ACL makupl Linux - Newbie 1 09-26-2013 01:11 AM
problem with samba and ACL ,ACL does not work as I want golden_boy615 Linux - Server 1 12-18-2011 09:18 AM
Why does the ACL of a file created under a directory differ from the default ACL sctebnt Linux - Security 5 12-02-2011 08:13 AM
iptables acl versus cisco acl id_viorel Linux - Security 1 04-09-2008 05:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:39 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