flat assembler
Message board for the users of flat assembler.

Index > Unix > filesystem permission analyzer

Author
Thread Post new topic Reply to topic
Ali.Z



Joined: 08 Jan 2018
Posts: 526
Ali.Z
to make it short, one of my SATA SSDs contains a FreeBSD system, I didn't use it for more than year. (I still remember that I used it to introduce UNIX-like to someone)

basically the filesystem permissions are in a bad shape, my definition of bad shape is:
lot of system directories and files and writable by OTHERS, that is not all even some system files are part of normal user group.

though one could say just recursively unset the write permission on these directories and their files plus set the group to either wheel or operator, but that is not the point here.

so what I'm looking for is if there is any tool that can analyze and list permissions on filesystem, things like list all directories owned by non-root user, or directories and files not owned by wheel or operator groups or even what groups have write permissions, etc.,...

and I don't really want to create such tool from scratch unless there is no such tool available Confused it can get very complex to design one.

_________________
Asm For Wise Humans
Post 08 Dec 2021, 17:11
View user's profile Send private message Reply with quote
sts-q



Joined: 29 Nov 2018
Posts: 49
sts-q
'find' should do the job, shouldn't it?
Post 08 Dec 2021, 22:01
View user's profile Send private message Visit poster's website Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 526
Ali.Z
I didn't know that, as I was using find only to find files and directories of interest; never bothered to read the whole man page about it.

now after reading, I can tell -perm and -flag are the arguments I need.

thank you Smile

_________________
Asm For Wise Humans
Post 09 Dec 2021, 11:05
View user's profile Send private message Reply with quote
sts-q



Joined: 29 Nov 2018
Posts: 49
sts-q
you are welcome

Smile
Post 09 Dec 2021, 12:22
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.