Question: Write a program in C which displays on the screen the user's permissions for each one of the files on the command line. In the

Write a program in C which displays on the screen the user's permissions for each one of the files on the command line. In the case when a file is specified with a relative (not full) path name, treat it as relative to the user's home directory, and not the current directory. You must use the stat and passwd structures. Demonstrate the correctness of your program by comparing your output with that of ls -l

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!