Jump to content

using chmod command [solved]


gem-in-eyez
 Share

Recommended Posts

I basically created a folder where I have tons of pics in folders with different names. I am learning the bash commands and came on to chmod where I want to set permissions to several folders in a working directory. I know that like windows, if I am in a folder I can change the permissions by using the *.* with the command to manipulate the all files in that directory. Now that I am working with directories I want to change the perms on several folders and if possible to know how to change the files in them aswell. I am in the prompt and not the gui mode because I just like it that way. I know that if I was in gui and went to the proporties option that I would then be able to do it to all the folders and the files but this is not the case.

can someone give me a quick hand for the evening.

 

PS I found out with some searches online that an ftp program allows you to do it but not neccessarily with all servers. In my case I was using CuteFtp and it worked on some but not all the files. Instead it gave me this message:

 

500-"SITE CHMOD 775 "the filename"" not understood.

500 SITE not understood.

 

can someone explain this to me also.

thnx alot.

Link to comment
Share on other sites

I basically created a folder where I have tons of pics in folders with different names. I am learning the bash commands and came on to chmod where I want to set permissions to several folders in a working directory. I know that like windows, if I am in a folder I can change the permissions by using the *.* with the command to manipulate the all files in that directory. Now that I am working with directories I want to change the perms on several folders and if possible to know how to change the files in them aswell. I am in the prompt and not the gui mode because I just like it that way. I know that if I was in gui and went to the proporties option that I would then be able to do it to all the folders and the files but this is not the case.

can someone give me a quick hand for the evening.

 

PS I found out with some searches online that an ftp program allows you to do it but not neccessarily with all servers. In my case I was using CuteFtp and it worked on some but not all the files. Instead it gave me this message:

 

500-"SITE CHMOD 775 "the filename"" not understood.

500 SITE not understood.

 

can someone explain this to me also.

thnx alot.

The chmod command uses as an argument a string which describes the permissions for a file. The permission description can be in the form of a number that is exactly three digits. Each digit of this number is a code for the permissions level of three types of people that might access this file:

 

 

Owner (you)

Group (a group of other users that you set up)

World (anyone else browsing around on the file system)

The value of each digit is set according to what rights each of the types of people listed above have to manipulate that file.

 

Permissions are set according to numbers. Read is 4. Write is 2. Execute is 1. The sums of these numbers give combinations of these permissions:

 

 

0 = no permissions whatsoever; this person cannot read, write, or execute the file

1 = execute only

2 = write only

3 = write and execute (1+2)

4 = read only

5 = read and execute (4+1)

6 = read and write (4+2)

7 = read and write and execute (4+2+1)

Permissions are given using these digits in a sequence of three: one for owner, one for group, one for world.

 

Source - http://www.december.com/unix/tutor/permissions.html

Link to comment
Share on other sites

Yeah I understood that part. I can manipulate files by themselves but when it comes to setting the same permission to several folders within a folder. I can't seem to figure out how.

 

 

Just figured it out so you moderators can delete the post.... -R is what i was trying to do before but I really had put -r instead

 

thnx eyeh8windows for the support!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...