Allow users to execute GET command on Server

If you want to allow few users who can fire get command on your server then you can do so easily using following steps, you can easily allow only selected/required users in particular group to run GET commands on your server :

First create a group on the server
]# groupadd getgrp
Now execute permission to group
]# chmod 750 /usr/bin/GET
Add this group to GET file.
]# chown root.getgrp /usr/bin/GET
To check the permission of GET
]# ll -ld /usr/bin/GET
If you want to add users to getgrp so that they can get execute permission on GET. Make sure getgrp should be secondary group of that user. For eg we will consider myuser1 as user for whom we want to grant permission.
]# gpasswd -M myuser1 getgrp
You need to check if the user is added
]# cat /etc/group | grep getgrp
For some reason if you want to add another user say myuser2 then make sure that you have to mention both myuser1 and myuser2 in your command as :
]# gpasswd -M myuser1,myuser2 getgrp
If you don’t mention both the user, this command will replace all the users with the user mentioned in your command. Its always recommended to run the cat command before adding any user so that you know how many users are already added. Or you can just edit the /etc/group file and add the user in the getgrp line.
Thus using above steps you can allow only root, myuser1 and myuser2 to execute GET command on your server and all other users will be denied for using GET command.

Posted under Reseller Hosting, WHM cpanel Hosting, cPanel account Hosting

This post was written by admin on

Tags: , ,

Leave a Comment

Name (required)

Email (required)

Website

Comments

More Blog Post