LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2012, 10:04 AM   #1
sdonald
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Rep: Reputation: Disabled
cannot see all directories/files with ls over vsftpd link


I have installed vsftpd and it is working for the most part.
When doing an ls via the ftp link only the files
with security context system show up. The files with
user context cannot be seen.
I have done an ls -Z on the machine and the directories/files that show up via the ftp link are system_u:object_r:default_t. The ones that do not show up are user_u:object_r:default_t. Permissions are wide open on both sets for directories/files.
Have I missed something in the vsftpd setup or have I set up something wrong on the user directories?

Last edited by sdonald; 02-22-2012 at 10:06 AM.
 
Old 02-22-2012, 01:49 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Smells like a selinux problem...running Fedora/RedHat?

Just a guess...

Edit - if so, look into chcon in the documentations...it's been ages since I used it...

Thor

Last edited by ButterflyMelissa; 02-22-2012 at 01:54 PM.
 
1 members found this post helpful.
Old 02-23-2012, 06:47 AM   #3
sdonald
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Original Poster
Rep: Reputation: Disabled
Using Red Hat. Thanks I'll look.
 
Old 02-23-2012, 06:59 AM   #4
redbonz2
LQ Newbie
 
Registered: Feb 2012
Posts: 1

Rep: Reputation: Disabled
Post New to Linux

Hello, I want to know how to navigate through linux. Thanks
 
Old 02-23-2012, 08:13 AM   #5
sdonald
LQ Newbie
 
Registered: Feb 2010
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks Thor 2.0. The selinux tip fixed my problem.
 
Old 02-23-2012, 11:01 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
@ sdonald - you're welcome!

@ redbonz2 - ask away, what would you like to know?
Linux (typically) uses partitioned disks, these disks are "chopped" up in sections for safety. A filesystem manifests itself as an upside-down tree. The first point is the "root" and everything else has to be "hooked" to it, that's called "being mounted". In escence, everything in Linux manifests itself as a folder. An example is a USB stick. After plugging it in, the system does what you should be doing by hand: mounting the stick. Once mounted, you dont change device (like in the "other" one) but actually navigate to a folder (mostly) called /media - the slash is part of the name. The folder /media, is "mounted" on to the "root", it is at top level.
Okay, enough theory, now for some practice.
Open a console, issue this (including slash)

Quote:
cd /
to go to the "root", and then

Quote:
ls -al
to see what's there, a small extract:

Quote:
drwxr-xr-x 2 root root 4096 Feb 22 17:40 bin
drwxr-xr-x 4 root root 1024 Feb 22 17:19 boot
drwxr-xr-x 3 root root 4096 Aug 28 2010 build
drwxr-xr-x 15 root root 5260 Feb 23 18:01 dev
drwxr-xr-x 78 root root 4096 Feb 23 18:01 etc
drwxr-xr-x 5 root root 4096 Sep 6 2010 home
drwxr-xr-x 11 root root 4096 Feb 22 17:20 lib
Everything that begins with a "d" is a folder, these are owned by the "Root" - the main user (dont confuse him/her with the root of the system).

Enter a folder

Quote:
cd etc
for example and repeat the "ls -al" command, and see if you can spot some more folders...

Lost? Dont worry, just like Dorothy in the Wizard of Oz, Linux has some magic, issue

Quote:
cd
and nothing else and you're back home...

Your Linux should have something like an explorer/file browser. Play with that too, there's nothing you can break, as long as you're not in the Root account...

Ask away, we'll help you through. But, best to start your own thread, let's not hijack sdonald's thread, here

Thor

Last edited by ButterflyMelissa; 02-23-2012 at 11:02 AM.
 
  


Reply

Tags
file permission, permissions, vsftpd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd get from deep directories Aigarzs Linux - Networking 1 11-22-2010 02:29 PM
VSFTPD mounted directories problem plaguekriz Linux - Newbie 3 08-17-2009 03:08 AM
vsftpd, web uploads, vsftpd virtual users, apache virtual hosts, home directories jerryasher Linux - Software 7 02-18-2007 06:29 AM
VSFTPD Custom Directories Slacktastic Linux - Software 2 03-19-2006 02:36 AM
vsftpd - new directories are chmod:ed 700 samel_tvom Linux - Software 2 05-23-2005 11:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration