-   Linux - Newbie (
-   -   cannot see all directories/files with ls over vsftpd link (

sdonald 02-22-2012 10:04 AM

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?

ButterflyMelissa 02-22-2012 01:49 PM

Smells like a selinux problem...running Fedora/RedHat?

Just a guess...

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


sdonald 02-23-2012 06:47 AM

Using Red Hat. Thanks I'll look.

redbonz2 02-23-2012 06:59 AM

New to Linux
Hello, I want to know how to navigate through linux. Thanks

sdonald 02-23-2012 08:13 AM

Thanks Thor 2.0. The selinux tip fixed my problem.

ButterflyMelissa 02-23-2012 11:01 AM

@ 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)


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


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


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


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


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 ;)


All times are GMT -5. The time now is 11:35 PM.