LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-09-2015, 03:07 AM   #1
yogeshtj889
LQ Newbie
 
Registered: Nov 2014
Posts: 17

Rep: Reputation: Disabled
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...
 
Old 10-09-2015, 10:57 AM   #2
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by yogeshtj889 View Post
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...
Hi yogeshtj889
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

Last edited by robertdaleweir; 10-09-2015 at 01:58 PM.
 
Old 10-10-2015, 03:34 AM   #3
yogeshtj889
LQ Newbie
 
Registered: Nov 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
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....

Last edited by yogeshtj889; 10-10-2015 at 03:40 AM.
 
Old 10-10-2015, 12:31 PM   #4
robertdaleweir
Member
 
Registered: Jul 2006
Location: Canada
Distribution: Fedora
Posts: 93

Rep: Reputation: 11
Quote:
Originally Posted by yogeshtj889 View Post
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....
Hi yogeshtj889
You add a user to group using
Code:
groupadd apps
Then use
Code:
useradd -G apps firstuser
Then add user ftp to group. Then use
Code:
useradd -G apps ftp
User names (for the applications) are in /etc/shadow and can be seen by
Code:
cat /etc/shadow
first column.
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.

Last edited by robertdaleweir; 10-10-2015 at 12:34 PM.
 
Old 10-10-2015, 01:41 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
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.
 
Old 10-10-2015, 02:55 PM   #6
yogeshtj889
LQ Newbie
 
Registered: Nov 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thankyou both I have understood the concept now....
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] ext4 - permission to create/modify a file without 'delete' permission BeachHead Linux - General 4 06-08-2014 07:34 PM
File & Folder Permission and Ownership permission error in Cloud storage. rhcekumaran Linux - Newbie 3 06-14-2013 04:41 AM
mkdir throws Permission Denied error in a directoy even with root ownership and 777 permission surajchalukya Linux - Security 14 09-03-2012 08:34 AM
i have given chmod 777 permission for access now how to revert that permission mohdsuboor23 Linux - Server 1 12-11-2010 05:19 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration