cancel
Showing results for 
Search instead for 
Did you mean: 

user permission

 
Highlighted
Advisor

user permission

how to assign permission for users in linux.

i want to assign HTTP service for some users. how can i do?
4 REPLIES 4
Highlighted
Trusted Contributor

Re: user permission

Hi ,

Assigning permission to users can be done by chmod, if permission needs to be done for group to which the user belongs to, chgrp should do good.

Other type of permission settings are setuid, setgid,sticky bit etc. Please be more specific on your question.

HTTP service cannot be assigned to users specifically. You may have a login screen on http page to authenticate. The port on which service is enabled is important. However are in the green side of the firewall and have access to the port should be able to access the HTTP service.

Thanks,
Srikanth
Highlighted
Trusted Contributor

Re: user permission

Linux Permissions:
You can use
chgrp to put them in a group
or chmod for read, write and execute
or you can apply using acls.

if you can give an example what you are trying to do then i can give you the complete format.

HTTP service. Each service has a configuration file. Edit that security file and users can be controlled.
Highlighted
Regular Advisor

Re: user permission

Hi,

u can also use sudo to assign specific service to perticular user.
login as root
#visudo
User_Alias HTTPUSER = user1
Cmnd_Alias SERVICES = /usr/sbin/httpd
HTTPUSER ALL=NOPASSWORD:SERVICES

MKS
Highlighted
Regular Advisor

Re: user permission

Hi
If u want to restrict the user for accessing web page u need to authentication through proxy and ldap or by AD integration or by Radius server.
Or
If u want to control the http service related commands, u have to configure the sudo which has been clearly mentioned by manoj.

Regds
Palani
Everything is Possible and Anything is Feasible if u try