Skip to content

z-vr/C-check-permissions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

C-check-permissions

A C code to run shell commands to check file permissions

Generates the following commands to run:

if [ -f "file.txt" ]; then echo file exists; else echo file does not exist; fi 
if [ -r "file.txt" ]; then echo can read; else echo cannot read; fi 
if [ -w "file.txt" ]; then echo can write; else echo cannot write; fi

And executes them using the system() method.

The original purpose is to check the setuid bit of files.

About

A C code to run shell commands to check file permissions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages