?
Solved

Linux ftp give access to user to another home folder

Posted on 2010-09-23
10
Medium Priority
?
597 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
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

770 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