Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Linux ftp give access to user to another home folder

Posted on 2010-09-23
10
Medium Priority
?
598 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
Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

 

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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying 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

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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.
Suggested Courses

604 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