SmallBASIC syntax groups: 

File command CHMOD

20  CHMOD file, mode
Change permissions of a file. See also ACCESS.

See examples

If there is insufficient information on this page and you wish learn more about CHMOD, please send an email to You can help to improve information about CHMOD by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.

  • file – A string expression that follows OS file naming conventions.
  • mode – Compatible with system call chmod()‘s ‘mode’ parameter.
' Make myfile available to anyone (read/write)
CHMOD "myfile.bas", 0o666
' Make myfile available to anyone (execute/read/write)
CHMOD "myfile.bas", 0o777