LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-07-2013, 10:03 AM   #1
a.abdulna
Member
 
Registered: Feb 2013
Location: Bangalore
Distribution: Rhel
Posts: 86

Rep: Reputation: Disabled
How to give permission in a particular folder.


Dear Team,

We have a FTP user in RHEL named BSNLOBD and this ftp user need to be access only /data/obderechange folder, no need to touch other folders and files in that server, So anybody please help me...


Warm Regards
Abdul
 
Old 03-07-2013, 10:16 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
/data/obderechange is a directory.
permissions should be handled as per the policies of the sys admin (usually via SELinux ).
 
Old 03-07-2013, 10:21 AM   #3
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Which distro is on ftp server?

If it's Unix, then simply add user bsnlobd to main group of /data/obderechange directory.
Code:
~$ ls -ld /data/obderechange
drwx.... owner group .... /data/obderechange
~$ usermod -G <group> bsnlobd
 
Old 03-07-2013, 10:31 AM   #4
a.abdulna
Member
 
Registered: Feb 2013
Location: Bangalore
Distribution: Rhel
Posts: 86

Original Poster
Rep: Reputation: Disabled
RHEL 5.4 am using
 
Old 03-07-2013, 11:03 AM   #5
mandyapenguin
Member
 
Registered: Nov 2011
Location: India
Distribution: RedHat, Cent OS, Fedora, Debian, Ubuntu
Posts: 106

Rep: Reputation: Disabled
Check this how to chroot or jail users,
If you are running vsftpd then open /etc/vsftpd/vsftpd.conf file and umcomment/add the below entry
Code:
chroot_local_user=YES
Then reload/restart vsftpd service. Thats it.
Check this if you wanted to change existing user's home directory?.

Last edited by mandyapenguin; 03-07-2013 at 11:08 AM.
 
  


Reply



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
How can i give permission for AD OU keysys Linux - Networking 4 12-22-2012 11:34 PM
nfs server - sharing folder - folder permission dlugasx Linux - Server 1 02-15-2011 12:30 AM
How to give the permission to SSH? ggyyree Linux - Newbie 4 07-29-2010 08:52 AM
How can i give permission for see a folder contents? epamuk Linux - General 1 09-23-2009 10:03 AM
What Does Each Group Give Permission To? Do7AN Slackware 6 02-14-2007 02:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 PM.

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