[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] chmod
- Subject: Re: [cobalt-users] chmod
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri May 2 20:18:01 2003
- Organization: Front Street Networks LLC
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
On Friday 02 May 2003 21:36, Manny Tau wrote:
> Quick question:
>
> What's the chmod to make a file web server writeable?
> What is it to make it world writeable?
>
> I just need to make some things clear in my cluttered head.
>
there are three sets of permissions, represented by 0-7
group-user is ordinarilly the group the owner belongs to, butr not always.
OWNER-USER GROUP-USER WORLD
Number | Permissions
----------+---------------------------------------------------------------
0 | None - cannot read or write or execute
1 | Can execute, but cannot read or write
2 | Write-only, cannot read or execute (??)
3 | Write-able/executable
4 | Read-only, cannot write to or execute
5 | Read-only executable, cannot write to
6 | Readable Writeable file, but not executable (ie: text file)
7 | Readable Writeable Executable file - most programs are this
Readable (r) has a weight of 4,
Writeable (w) has a weight of 2
Executable (x) has a weight of 1
rwx rwx rwx
421 421 421
to write to the file, it needs 2 or 020 or -w- permissions.
but that wound not be much good as you probably want to read the file also
to read/write to the file, it needs 6 or 420 or rw- permissions.
If you want a cgi to read/write to the file, you can use 600 with the owner
being the site admin
if you want the world to read/write to the file you might use 666
There are some very good resources on the internet search
http://www.google.com/linux?hl=en&lr=&ie=ISO-8859-1&q=chmod
Where i found the above chart.
http://jgo.local.net/LinuxGuide/linux-chmod.html
Gerald
--
http://frontstreetnetworks.com | http://store.raqware.com
ICQ: 229276628 | AIM handle: raqware
Front Street Networks LLC | Phone: 203-785-0699
229 Front Street, Suite C, New Haven, CT 06513-3203