PDA

View Full Version : whats the command to give file permission



Sid Alam
10-03-2002, 03:15 PM
whats the command to give file permission
-rw-r--r-- on unix system?

sleddog
10-03-2002, 04:50 PM
chmod 644 filename

Where 'filename' is, well, the file or directory name :)

That assumes the file is in the current working directory. You may also specify the absolute path to the file, e.g.:

chmod 644 /home/sleddog/textdocs/report.txt