Jump to content
xisto Community
Sign in to follow this  
soleimanian

Chmod Files help me

Recommended Posts

hi every one

how i can chmod my files to 666 via ftp program or ssh access

please help me

best regards

soleimanian

<{POST_SNAPBACK}>


In an FTP Program like FileZilla, log into your FTP, browse to folders or files you want to chmod and right-click on them and select File Attributes and just check all Read and Write and No Execute or type 666 inside the box.

 

Cheers,

 

 

MC

Share this post


Link to post
Share on other sites

In shell you can change access permission simply with chmod command. You can use the numerical form (ie. chmod 666) or letters (easier to remember).With letters it goes like this:For example if you want to give others (in web server meaning anyone who tries to access the file thru web) write permission you could type: chmod o+w <filename>If you wanted to take the write permissions away you'd use - (minus) instead of plus. chmod o-w <file>For read the letter is r and for execution x. Notice that execution also means access to directory (if the file is a directory)For yourself the symbol to use is u (as in user) and for group g (group means users belonging to same usergroup as the owner. In web server doesn't really matter). Latter a means all (ie. user, group and other)You can also combine different change rules to one command. For example setting read, write and execute right for yourself: chmod u+rwx <file>

Share this post


Link to post
Share on other sites

OK if you want to do this without using a complicated FTP connection, all you have to do is go to http://www.youraddress.com/cpanel and log in with your cpanel username and password. After you have done this go into file manager and select the function 'change chmod' and that will let you do this much quicker and easier. I dislike fiddling around with it in FTP as well.

Share this post


Link to post
Share on other sites

Actually, there's a simple map to give you the numeric.
Start with n = 000 and add all that apply from this chart:

       Owner Group WorldRead      400    40     4Write     200    20     2Execute   100    10     1
For example, if you want everone to Read and Execute but only the owner to write:
400+40+4+200+100+10+1=755
So 755 is your numeric.
Seems quite easy now, doen't it.

Share this post


Link to post
Share on other sites

hi every one

how i can chmod my files to 666 via ftp program or ssh access

<{POST_SNAPBACK}>

Hey Mate,

Using ssh is easy. Simply cd to the appropriate directory. Then at the command prompt type: chmod 666 filename. That's it. You can see from others posts how you might change permissions other than 666. It works the same if you want 755 or 777 or whatever.

 

best wishes

hashbang

 

Posted Image

Share this post


Link to post
Share on other sites

Hey Mate,

Using ssh is easy. Simply cd to the appropriate directory. Then at the command prompt type: chmod 666 filename. That's it. You can see from others posts how you might change permissions other than 666. It works the same if you want 755 or 777 or whatever.

 

best wishes

hashbang

 

Posted Image

<{POST_SNAPBACK}>


Notice, that most of us don't have shell/SSH access:

 

user@svr ~$ ssh cryptw@cw.astahost.comThe authenticity of host 'cw.astahost.com (69.50.168.69)' can't be established.RSA key fingerprint is 28:79:b0:99:d5:3c:cb:9e:9d:6f:42:f7:2e:80:52:dd.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added 'cw.astahost.com' (RSA) to the list of known hosts.cryptw@cw.astahost.com's password:Shell access is not enabled on your account!If you need shell access please contact support.Connection to cw.astahost.com closed.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.