Solved

Linux ftp give access to user to another home folder

Posted on 2010-09-23
10
587 Views
Last Modified: 2013-12-15
Hi there

Hi created on my ftp server user

useradd -m -s /sbin/nologin user1
then
I go to hi home folder to give him access to another user
cd /home/user1
then
ln -s  /home/user2    to give access user1 to home folder of user2

then I go to /etc/group

I edit user2

user2:x:572:user1

Ok now I open the ftp site log has user1and I should be able to see and have access to directory home folder of user2 but I still get an access denied

I go to cd /home/user2

chmod 750 on user2 home directory but still I get an access denied ???

Does anyone know how to log on on ftp site with one user and have access to another user directory ?

thanks all
0
Comment
Question by:thebodz99
  • 5
  • 4
10 Comments
 
LVL 7

Expert Comment

by:myhc
ID: 33749672
what version of linux?
0
 

Author Comment

by:thebodz99
ID: 33749682
redhat
0
 
LVL 7

Expert Comment

by:myhc
ID: 33749720
Ah, sorry. i'm no help.

i use ubuntu.  I'm sure there is a redhat IRC channel for support.  thats your best option.


So get an irc client. connect to irc.freenode.net then join room #redhat

you might need to find the correct channel on the web, but that will be amazing support.
0
 

Author Comment

by:thebodz99
ID: 33749734
so nobody knows how to do it???
0
 
LVL 7

Expert Comment

by:myhc
ID: 33749757
not me, others are just not helping at the moment. lol  Sorry

late in UK 00:14 - so bed for me. someone else might be along in a moment or best 24Hr
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:thebodz99
ID: 33749771
ok ill wait for someone
0
 
LVL 2

Expert Comment

by:ashwin42
ID: 33749777
Is selinux enabled? If it is, then you will have to run chcon
0
 

Author Comment

by:thebodz99
ID: 33749804
im sorry what is SELINUX and chcon?
0
 
LVL 7

Expert Comment

by:myhc
ID: 33749884
IRC Channel: #RedHat on freenode.net is still your best option.
0
 

Accepted Solution

by:
thebodz99 earned 0 total points
ID: 33753331
Ok I kinda found a way to do it

I edit the vsftpd.conf and set chroot_local_user=NO

I see all the folders but have access to only the one I gave access into folder /etc/group

thanks anyway
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now