Articles by VirtualEntity

  • Using TAR with Bunzip2 files

    Author: VirtualEntityTags: Comments: 0

    Using TAR with Bunzip2 files Bunzipping and then unTARring in two steps is not convenient. It is not necessary to use Bunzip2 and then TAR to unzip a file in two separate steps. Tar will do the job on its own if the -j switch is used, thus: tar xjvf linux-source<version>.tar.bz2 By the same token, you may use the -z switch with a gzipped file, e.g. tar zxvf linux-source<version>.tar.gz

  • Setting the SUID/SGID bits: Giving a program YOUR permissions when it runs

    Author: VirtualEntityTags: , Comments: 5

    Setting the SUID/SGID bits: Giving a program YOUR permissions when it runs Normally, when a program runs under Linux, it inherits the permissions of the user who is running it, thus if I run a program under my account, the program runs with the same permissions that I would have if that program were me. Thus, if I cannot open a certain file, the program I am running also cannot open the file in question. If I set the SUID or SGID bit for a file, this causes any persons or processes that run the file to have access to system resources as though they are the owner of the file.