This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Dreamweaver > August 2004 > Re: How chmod group of files all at once HuH?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Re: How chmod group of files all at once HuH?
|
|
| American Christ 2004-08-09, 7:15 pm |
| Sorry
But I do not understand your message? I need exact easy to understand
instructions step by step on what exactly to do to accpmplish this; and i have
no idea what you said or are talking about; i am not that versed in tech lingo
on this; but merely a beginner. Please respond with simple easy to follow step
by step instructions of hos to do this
thank you
Rick
| |
|
|
"American Christ" <webforumsuser@macromedia.com> wrote in message
news:cf8bof$2ic$1@forums.macromedia.com...
> Sorry
> But I do not understand your message? I need exact easy to understand
> instructions step by step on what exactly to do to accpmplish this; and i
have
> no idea what you said or are talking about; i am not that versed in tech
lingo
> on this; but merely a beginner. Please respond with simple easy to follow
step
> by step instructions of hos to do this
>
> thank you
>
> Rick
>
It is probably best that you contact the server
support person, it would be a simple thing for
them to do.
Here is a link for some information on UNIX commands:
< http://webmonkey.wired.com/webmonke...nce/unix_guide/ >
HTH
-Rb
| |
| American Christ 2004-08-10, 12:14 pm |
| Hello
Thaks again for taking the time to try to help. Although knew to this
internet; I did get an A+ in Pascal in the '80s and also A's in fortran and
Cobal; My Pascal instructor at the U of MN kept my last lab as an example to
show his future classes what an excellent and elegant program looks like. So i
am capable of understanding this too; even though my brain has slowed down with
the years and i am a bit slower these days.
My server guy at appleisp lately takes about a week to answer an email and I
really do not want to wait till next week to get back to work. i dont want a
week off in other words. Below is what I wrote to him and if you are willing
perhaps you can give me these concrete examples i an requesting from him.
Your links were good for info, but I still did not understand the syntax -too
abstract for me I guess.
anyway thanks for trying to help; and hopefully by next week I'' have what I
need to do this.
I have at least 12 PHP scripts all with a lot of permissions to do and it
would not be all that easy but a bit of a chore for the support to do it all;
so I need to learn to do this; even if these days i am a bit slow and less
sharp on these matters than in my youth.
anyway. I do appreciate you trying to help me in this and wsh you well.
Rick
The problem is I have a list of the Unix commands including chmod; and I have
some abstracted examples of their syntax but I do not understand these examples
and need to see a non-abstract example or 2 on these commands to use in my ftp
log command box to change permissions of a single file or folder and change
permissions of a group of files all at once (recursively?) within a folder too;
plus, I need examples to remove a directory folder and its files or to remove
an individual file or folder.
What I need to do my work is simply to see working examples based on my site
that give me the syntax in a way that I can easily mimic; I do not need or want
understanding right now on all this just the structure to do the job written in
real examples so I can imitate those examples to do my tasks.
Like this:
site chmod 777
/Sites/ricksenterprises.com/ricks_dynamic_sites/ricks_coolsites_directory/cool_w
ebsites_review/styles/default/templates
I know that if I imitate this structure that I can change permissions for a
particular file (I do not want an abstraction of this structure or
understanding but to see examples of this syntax)
I need this kind of concrete example of the command I need to put in my ftp
log command box to use to:
Change individual file permissions
Change permissions for a group of files in a folder all at once
Remove an individual file or folder
Remove a folder and its contents
The guy at macromedia's forum said to have you do it for me; but that is not
right when I can do this if someone will just give me these concrete examples I
think.
Thanks
Poetman
Richard Strunk
763 561 8873
This is what I have and it is too abstract for me; I need an actual example of
the actual commands being used:
chmod/permissions
chmod (which stands for "change mode") changes who can access a particular
file. A "mode" is created by combining the various options from who, opcode,
and permission.
Structure: chmod [option] mode file
If you look at a list of files using the long list format ls -l, you'll see
the permissions, owner, file size, modification time, and filename. The first
column of the list shows who can read, write, and execute the files or
directories - in other words, the permissions. It basically shows who has
permission to do what to a given file or directory. r stands for "read" and
means that you're allowed to read the file or directory. w stands for "write"
and gives permission to edit or change the file as well as create, move,
rename, or remove a directory. x stands for "execute," which gives permission
to run a file or search a directory.
Every file or directory has four sets of rwx permissions. The first set
represents the user (u), the second set represents the group (g), the third set
represents other (o), and the fourth set represents all (a). The column will
look like this:
rwxrwxrwx
Each set of rwx represents user, group, and other respectively. Only the owner
of a file or a privileged user may change the permissions on a file.
There are two ways to change permissions on a file or directory, either
numerically or by using lettered commands. Both ways use the command chmod. To
add permissions to a file, you use +, to remove permissions you use-. Take this
file for example:
-rw-r--r-- 1 meghan monkey 476 Oct 14 17:13 simian.html
To allow a group (monkey, in this case) "write" access, you would type:
chmod g+w simian.html
If you wanted to remove "read" ability from "other" you would type:
chmod o-r simian.html
It is also possible to specify permissions using a three-digit sequence. This
is a more efficient way to change permissions (or at least it requires less
typing), so use this method if it doesn't confuse you. Each type of permission
is given an octal value. Read is given the value of 4, write is given the value
of 2, and execute is given the value of 1. These values are added together for
each user category. The permissions are changed by using a three-digit sequence
with the first digit representing owner permission, the second digit
representing group permission, and the third digit representing other
permission. For example, if you wanted to make simian.html readable, writable,
and executable for the user, readable and writable for the group, and readable
for other, you would type:
chmod 764 simian.html
The first digit means readable and writable for the user (4+2+1), the second
digit means readable and writable for the group (4+2), and the third digit
means readable for other (4).
If you want to change the permissions on a directory tree use the -R option.
chmod -R will recursively change the permissions of directories and their
contents.
rm
rm removes or deletes files from a directory.
Structure: rm [options] files
In order to remove a file, you must have write permission to the directory
where the file is located. When removing a file that you do not have write
permission on, a prompt will come up asking you whether or not you wish to
override the write protection.
The -r option is very handy and very dangerous. -r can be used to remove a
directory and all its contents. If you use the -i option, you can possibly
catch some disastrous mistakes because it'll ask you to confirm whether you
really want to remove a file before going ahead and doing it.
rm - removes a file
syntax: rm [options] [files]
Here's an example of removing a file:
sutro.hotwired.com[~/unixclass]% rm one.html
sutro.hotwired.com[~/unixclass]% ls
somethingdifferent two.html
I removed the file one.html from the directory unixclass.
rm -ir - removes a directory
Here's what happens when you remove a directory:
sutro.hotwired.com[~/unixclass]% rm -ir somethingdifferent/
Directory somethingdifferent/. Remove ? (yes/no)[no] : yes
Directory somethingdifferent//one. Remove ? (yes/no)[no] : yes
sutro.hotwired.com[~/unixclass]% ls
two.html
In this example, I've used rm -ir to remove the directory somethingdifferent.
Before the directory is removed, I must confirm that I really want it gone.
Once I do, somethingdifferent no longer exists. Be very careful with rm,
because once files or directories are gone, they're probably gone forever.
| |
| American Christ 2004-08-15, 7:15 pm |
| Hello
Thaks again for taking the time to try to help. Although knew to this
internet; I did get an A+ in Pascal in the '80s and also A's in fortran and
Cobal; My Pascal instructor at the U of MN kept my last lab as an example to
show his future classes what an excellent and elegant program looks like. So i
am capable of understanding this too; even though my brain has slowed down with
the years and i am a bit slower these days.
My server guy at appleisp lately takes about a week to answer an email and I
really do not want to wait till next week to get back to work. i dont want a
week off in other words. Below is what I wrote to him and if you are willing
perhaps you can give me these concrete examples i an requesting from him.
Your links were good for info, but I still did not understand the syntax -too
abstract for me I guess.
anyway thanks for trying to help; and hopefully by next week I'' have what I
need to do this.
I have at least 12 PHP scripts all with a lot of permissions to do and it
would not be all that easy but a bit of a chore for the support to do it all;
so I need to learn to do this; even if these days i am a bit slow and less
sharp on these matters than in my youth.
anyway. I do appreciate you trying to help me in this and wsh you well.
Rick
The problem is I have a list of the Unix commands including chmod; and I have
some abstracted examples of their syntax but I do not understand these examples
and need to see a non-abstract example or 2 on these commands to use in my ftp
log command box to change permissions of a single file or folder and change
permissions of a group of files all at once (recursively?) within a folder too;
plus, I need examples to remove a directory folder and its files or to remove
an individual file or folder.
What I need to do my work is simply to see working examples based on my site
that give me the syntax in a way that I can easily mimic; I do not need or want
understanding right now on all this just the structure to do the job written in
real examples so I can imitate those examples to do my tasks.
Like this:
site chmod 777
/Sites/ricksenterprises.com/ricks_dynamic_sites/ricks_coolsites_directory/cool_w
ebsites_review/styles/default/templates
I know that if I imitate this structure that I can change permissions for a
particular file (I do not want an abstraction of this structure or
understanding but to see examples of this syntax)
I need this kind of concrete example of the command I need to put in my ftp
log command box to use to:
Change individual file permissions
Change permissions for a group of files in a folder all at once
Remove an individual file or folder
Remove a folder and its contents
The guy at macromedia's forum said to have you do it for me; but that is not
right when I can do this if someone will just give me these concrete examples I
think.
Thanks
Poetman
Richard Strunk
763 561 8873
This is what I have and it is too abstract for me; I need an actual example of
the actual commands being used:
chmod/permissions
chmod (which stands for "change mode") changes who can access a particular
file. A "mode" is created by combining the various options from who, opcode,
and permission.
Structure: chmod [option] mode file
If you look at a list of files using the long list format ls -l, you'll see
the permissions, owner, file size, modification time, and filename. The first
column of the list shows who can read, write, and execute the files or
directories - in other words, the permissions. It basically shows who has
permission to do what to a given file or directory. r stands for "read" and
means that you're allowed to read the file or directory. w stands for "write"
and gives permission to edit or change the file as well as create, move,
rename, or remove a directory. x stands for "execute," which gives permission
to run a file or search a directory.
Every file or directory has four sets of rwx permissions. The first set
represents the user (u), the second set represents the group (g), the third set
represents other (o), and the fourth set represents all (a). The column will
look like this:
rwxrwxrwx
Each set of rwx represents user, group, and other respectively. Only the owner
of a file or a privileged user may change the permissions on a file.
There are two ways to change permissions on a file or directory, either
numerically or by using lettered commands. Both ways use the command chmod. To
add permissions to a file, you use +, to remove permissions you use-. Take this
file for example:
-rw-r--r-- 1 meghan monkey 476 Oct 14 17:13 simian.html
To allow a group (monkey, in this case) "write" access, you would type:
chmod g+w simian.html
If you wanted to remove "read" ability from "other" you would type:
chmod o-r simian.html
It is also possible to specify permissions using a three-digit sequence. This
is a more efficient way to change permissions (or at least it requires less
typing), so use this method if it doesn't confuse you. Each type of permission
is given an octal value. Read is given the value of 4, write is given the value
of 2, and execute is given the value of 1. These values are added together for
each user category. The permissions are changed by using a three-digit sequence
with the first digit representing owner permission, the second digit
representing group permission, and the third digit representing other
permission. For example, if you wanted to make simian.html readable, writable,
and executable for the user, readable and writable for the group, and readable
for other, you would type:
chmod 764 simian.html
The first digit means readable and writable for the user (4+2+1), the second
digit means readable and writable for the group (4+2), and the third digit
means readable for other (4).
If you want to change the permissions on a directory tree use the -R option.
chmod -R will recursively change the permissions of directories and their
contents.
rm
rm removes or deletes files from a directory.
Structure: rm [options] files
In order to remove a file, you must have write permission to the directory
where the file is located. When removing a file that you do not have write
permission on, a prompt will come up asking you whether or not you wish to
override the write protection.
The -r option is very handy and very dangerous. -r can be used to remove a
directory and all its contents. If you use the -i option, you can possibly
catch some disastrous mistakes because it'll ask you to confirm whether you
really want to remove a file before going ahead and doing it.
rm - removes a file
syntax: rm [options] [files]
Here's an example of removing a file:
sutro.hotwired.com[~/unixclass]% rm one.html
sutro.hotwired.com[~/unixclass]% ls
somethingdifferent two.html
I removed the file one.html from the directory unixclass.
rm -ir - removes a directory
Here's what happens when you remove a directory:
sutro.hotwired.com[~/unixclass]% rm -ir somethingdifferent/
Directory somethingdifferent/. Remove ? (yes/no)[no] : yes
Directory somethingdifferent//one. Remove ? (yes/no)[no] : yes
sutro.hotwired.com[~/unixclass]% ls
two.html
In this example, I've used rm -ir to remove the directory somethingdifferent.
Before the directory is removed, I must confirm that I really want it gone.
Once I do, somethingdifferent no longer exists. Be very careful with rm,
because once files or directories are gone, they're probably gone forever.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|