Sudo su vs su3/1/2024 ![]() If this list of command varies to the range, where it is literally not possible to type each command manually we need to use aliases. If the number of commands, user is supposed to run is under 10, we can place all the commands alongside, with white space in between them, as shown below: mark beta.database_=(cat) /usr/bin/command1 /usr/sbin/command2 /usr/sbin/command3. What if the user needs to be granted several commands? To implement the above situation, we can write ‘sudo’ as: mark beta.database_=(cat) dog You have a sudo user ‘ cat‘ which is supposed to run command ‘ dog‘ only. Q2.You have a user ‘ tom‘ which is supposed to execute system command as user other than root on the same Database Server, above Explained.įor the above situation the ‘ sudo‘ line can be written as: mark beta.database_=(tom) ALL You are supposed to provide him all the access on Database Server ( beta.database_) only, and not on any host.įor the above situation the ‘ sudo‘ line can be written as: mark beta.database_=(ALL) ALL ![]() You have a user mark which is a Database Administrator. Some of the Situations, and their corresponding ‘ sudo‘ line: Suggested Read: 10 Useful Sudoers Configurations for Setting ‘sudo’ in Linux
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |