Permission
Hey I am new in linux and I have query that If I want to give permission to user for particular application for example FTP,Samba,Nfs,Oracle then how can I restrict or give accec to user..
Please help... |
Quote:
The best way is to put these apps into a 'group' that you create such as 'apps'. Then add the user to that group along with the 'apps'. I do not know which Linux you have but there are GUI ways to create the Group etc.. See https://www.linode.com/docs/tools-re...ers-and-groups |
hi robertdaleweir
I am using redhat n centos, I can create groups and users but how to put apps in group can u give me any examples, i have read which link u send me.... |
Quote:
You add a user to group using Code:
groupadd apps Code:
useradd -G apps firstuser Code:
useradd -G apps ftp Code:
cat /etc/shadow I found this at http://www.cyberciti.biz/faq/howto-l...user-to-group/ as I do not have Centos, but it is quite generic. Add all the applications users like 'ftp' etc to the group and that should give your users access. |
Your question is not very clear because those applications are server/client programs. Since you posted in the linux-server forum than the assumption would be to limit users connecting to the linux box.
The previous posts would limit users logged in from running the client ftp program to access other networked computers but not restrict other computers from accessing the linux computer. samba is a network protocol that allows windows to access files and printers on a linux computer which is the server part and a client that lets linux access windows files and printers which is the client part. If you want to limit server connections you would restrict users by configuring the /etc/samba/smb.conf file. ftp has its own configuration file and it depends on what ftp server you are running. In most cases there is little reason to run an ftp server and you should use sftp instead. For sftp you would limit users via the /etc/ssh/sshd_config file. You can limit nfs access via the /etc/exports configuration file. With oracle permissions are granted by adding a user and giving it password and then allowing it access to tables etc via the system user. |
Thankyou both I have understood the concept now....
|
All times are GMT -5. The time now is 06:05 AM. |