Directory Permissions

Mike Hoy mhoy06 at gmail.com
Mon Dec 1 13:57:13 MST 2008


ah ic, thanks Lisa. ls -ald helps a lot. If chmod u+w /var/log/tiger
gives that directory user privs, what command gives write permissions
for public/other? is it chmod o+w /dir/ ?

On Mon, Dec 1, 2008 at 1:51 PM, Lisa Kachold <lisakachold at obnosis.com> wrote:
> 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 at spider tiger]#
> pwd
> /var/log/tiger
>
> This shows the permissions inherited for the current directory:
> [root at spider tmp]# ls -ald
> drwxrwxrwt 32 root root 4096 2008-12-01 11:28 .
> [root at spider tmp]#
>
>
> This changes the permissions on the working directory to include user write
> permissions:
>
> [root at spider tiger]# chmod u+w /var/log/tiger
>
>
> This will show the directory structure:
> [root at spider tiger]# ls -ald /var/log/tiger
> drwx------ 2 root root 4096 2008-12-01 11:35 /var/log/tiger
> [root at 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 at gmail.com
>> To: plug-discuss at 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 at 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.
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>



-- 
Mike Hoy


More information about the PLUG-discuss mailing list