Solved

Linux ftp give access to user to another home folder

Posted on 2010-09-23
10
596 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

 

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
 

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

688 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