Question:
how do i change te permison on my files when i upload them linux?
conejote_99
2006-05-04 08:58:38 UTC
how do i change te permison on my files when i upload them using the fttp this is in linux and to see the error please copy and paste this link

http://www.partydown.com/cgi-bin/webcat.pl
Six answers:
2006-05-04 09:00:37 UTC
the command is call "chmod"



works from a shell or from ftp



the basic command is



chmod ugo+rwx FILENAME



if you want to change

u user permissions

g group permissions

o other permissions

+ adds

r read access

w write access

x execute (or accessibility for a directory)



a webserver does not run as you, so you need to give it read access. if you are a member of its group you add the group permission, but it's probably "other"



as an alternative you can set permissions as an octal numer



chmod 644 FILENAME

would give you full permission, and your group and others read only

(chmod 755 DIRNAME for a directory)



I've used ws_ftp before, and it's pretty nice so it probably has this feature... but I have my limits and I don't think I'm going to install it just to test it for you :) try using a female avatar, that suckers me sometimes :)



but, to fix your immediate problem, you can log in using the regular windows ftp and set it that way



in an MSDOS window type

ftp HOSTNAME



user: yourusername

password: yourpassword



then, once you are logged in you will be in your login directory. if you want to see the directory listing



ls

dir



(either of those will work) if you need to change directories



cd DIR/NAMES



then



chmod 644 FILENAME



you can use wildcards, but you need to turn on "globbing" usually which I can't recall how to do



globbing on

glob on

set glob on

help



type some combination of the above, or search the web for ftp globbing and you will find how to do it.



The other thing you can do probably is add a file to you home directory and put a umask in it. then, when you log in it will set your default permissions to the umask. check with your ISP help for whether they support this and what file you should put it in or whether they will change it for you. Once you've identified where it goes, the other tricky part is that umasks are the binary opposite of chmod bitfields, so the umask number is not the same as the 644. I always have to look it up so that's what you'll have to do, but now that you know it's called a umask, searching will be pretty easy.
2016-05-20 10:29:41 UTC
An exe file is a Windows executable file, these need the Windows OS, they will NOT run on Linux. Unless you have the full source and header files for the program and can re-compile it, there is nothing you can change to make it work. There are various Windows emulators for Linux, the best known being Wine, load one of these and you may get the Windows program to run on it. It is not a particularly efficient method, and there is no guarantee that any particular program will run on these. Better to look for a Linux equivalent program, apart from games there is always one available.
Jonathan
2006-05-04 09:06:33 UTC
Use chmod.



chmod 600 filename



That should work. It gives only you permission to read it.



If you're trying to host a file for a web site, then you'll need to use



chmod 644 filename
Zaraki Kenpachi
2006-05-04 09:05:00 UTC
You might want to be careful what you pick as it can allow other people to change your file. I would suggest testing a few but make sure you pick the lowest. You have to see if it needs executable rights or just read rights.
Mahurshi Akilla
2006-05-04 09:08:14 UTC
the above answers are good.



to find out more about chmod, type



man chmod



this "man" prefixed to linux commands/(some) programs

will show the manual entries associated with them.



Mahurshi Akilla
New Yorker
2006-05-04 09:01:24 UTC
chmod is the command, you need to set it to something like 777 that means ALL permissions for everyone,

I generally just do 666 which allows everyone to read it.



type chmod filename 666


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...