Using bash shells to negotiate directory structures is a matter of learning both shell (and metacharacter switches), as well as learning hierarchical file structures:

This prints the working directory:
[root@spider tiger]# pwd                                                         
/var/log/tiger

This shows the permissions inherited for the current directory:
[root@spider tmp]# ls -ald
drwxrwxrwt 32 root root 4096 2008-12-01 11:28 .
[root@spider tmp]#


This changes the permissions on the working directory to include user write permissions:                                                                  
[root@spider tiger]# chmod u+w /var/log/tiger


This will show the directory structure:
[root@spider tiger]# ls -ald /var/log/tiger
drwx------ 2 root root 4096 2008-12-01 11:35 /var/log/tiger
[root@spider tiger]#


www.Obnosis.com |  http://en.wiktionary.org/wiki/Citations:obnosis | http://www.urbandictionary.com/define.php?term=obnosis (503)754-4452

Catch the January PLUG HackFest!   Kristy Westphal, CSO for the Arizona Department of Economic Security will provide a one hour presentation on forensics.




> Date: Mon, 1 Dec 2008 13:28:25 -0700
> From: mhoy06@gmail.com
> To: plug-discuss@lists.plug.phoenix.az.us
> Subject: Directory Permissions
>
> I'm pretty new at Linux still and I am confused about directory
> permissions. I'm trying to upload products to our website here at work
> (Linux Server Cent OS). It says a certain directory lacks write
> permissions.
>
> I wanted to see what the permissions were on it so I did a ls -l, but
> that shows the contents of the directory (and it's huge, full of
> images).
>
> Then I want to give write access to that directory. Is it CHMOD that I
> need to use here?
>
> Any feedback appreciated. Gotta get these products uploaded and fast!
>
> --
> Mike Hoy
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


Color coding for safety: Windows Live Hotmail alerts you to suspicious email. Sign up today.