Originally Posted by BCC
I would like to grant read only access to all files for one user on a Linux server (CentOS 6.3). VISUDO is what looked promissing, but after a couple hours of searching it has yielded no results other than to be able to grant full access. Does anybody know if this can be done? Thank you.
Well, visudo is one command, that is used to set up the sudoers file. That command only does that ONE thing, so I'm not sure why you thought it would do anything related to file permissions.
That said, *MOST* of the files on your system are probably readable to a 'regular' user anyway, with the exception of a very few. If all you want the user to be able to do is look at the contents of files, then grant them root access to the 'cat' command only, in the sudoers file, like this:
That should let them look at any file on the system, but not change anything. However, if you don't trust this user to make changes, you should not trust them with being able to read all the files, or escalated privileges AT ALL