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:
[EMAIL PROTECTED] tiger]# pwd                                                   
       
/var/log/tiger 

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


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


This will show the directory structure:
[EMAIL PROTECTED] tiger]# ls -ald /var/log/tiger
drwx------ 2 root root 4096 2008-12-01 11:35 /var/log/tiger
[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
> To: [email protected]
> 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 - [email protected]
> 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.
http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008
 
---------------------------------------------------
PLUG-discuss mailing list - [email protected]
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Reply via email to