ASKER
ASKER
A Linux distribution is an operating system made as a software collection based on the Linux kernel and, often, on a package management system and are available for a variety of systems. A typical Linux distribution comprises a Linux kernel, GNU tools and libraries, additional software, documentation, a window system (the most common being the X Window System), a window manager, and a desktop environment. Most Linux systems are open-source software made available both as compiled binaries and in source code form, allowing modifications to the original software. Over three hundred distributions are in active development, including commercially backed distributions (such as Fedora, openSUSE and Ubuntu) and community-driven distributions (such as Debian, Slackware, Gentoo and Arch Linux).
TRUSTED BY
Te commands to change permissions on files or folders are chmod and chown.
Chown changes the ownership of a file. The command `chown user1 example` changes the owner of the file 'example' to user1, and the group to user1's default group. The command `chown user1:wheel example` does the same to the ownership, but the group is set to wheel.
Chmod changes the permission bits of a file. Every file has 3 permission switches for 3 groups: u (user owner), g (group owner) and o (others), can independently allowed r (read access), w (write access) and/or x (execute access). The command chmod requires the parameters either in a form that specifies the user and the permissions or permission changes (like u+x, o-rwx) or as an octal number that is a bitfiels of the permission bits with the values r=4, w=2 and x=1 (ie. rwx = 4+2+1 => 7, chmod needs one digit for each group, eg. 644). The command `chmod u+rw example` would allow the user owner (the one you set with the chown command) read and write access. The command `chmod go-x example` would disallow execution of the file example by any group members of the owning group, as well as anyone else. The execute permission of the user owner is untouched. The command `chmod 755 example`would give the user owner read, write and execute permissions, the group owner and everyone else only read and execute.
Depending on your filesystem, your linux might offer other ways of setting permissions. There might be tools that set ACLs. Common unix tools are the ones I described. Please also consult the man pages (type `man chmod` and `man chown`).
HTH