Solved

Linux ftp give access to user to another home folder

Posted on 2010-09-23
10
588 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Fine Tune your automatic Updates for Ubuntu / Debian
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

863 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

24 Experts available now in Live!

Get 1:1 Help Now