Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1319  / 2 Years ago, mon, august 15, 2022, 9:07:22

I would like to create a folder in my OPT directory on Ubuntu 14.04. However, it must have the following requirements:




  • Can not be deleted by ANYONE, even root.

  • ReadOnly access to ALL users (except nobody)

  • Write access ONLY by my user (test-user). Root shouldn't be able to write.


More From » permissions

 Answers
2

Can not be deleted by ANYONE, even root.




Nope. root can always remount the disk or (better) remove any restrictions you put into place.




ReadOnly access to ALL users (except nobody)




See 3.




Write access ONLY by my user (test-user). Root shouldn't be able to write.




Nope. root can always remove any restrictions you put into place. You can mount (example: //youserver/sharename /mnt/mountpoint cifs username=yourusername,password=yourpassword,file_mode=0664,dir_mode=0775) a partition for a user but not block root access.






root can always (and has to always be able to) change anything that can form any sort of restriction. Otherwise you can end up with an unusable system that can only be formatted to get it working again.



If you have a root user that you do not trust then change the password and force them of the system. Otherwise this is moot: you will have to trust your admin.


[#23369] Wednesday, August 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fatuatexen

Total Points: 451
Total Questions: 107
Total Answers: 110

Location: Trinidad and Tobago
Member since Thu, Apr 27, 2023
1 Year ago
fatuatexen questions
;