A virtual file can present information from the kernel to the user and also serve as a means of sending information from the user to the kernel. Note the series of numbered files on the left. Each of these is a directory representing a process in the system.
The problem arouse when I tried to copy something on this partition. I was simply not able to copy anything in it or create a new file. Lets find out how to do it. How to set write permission on ext4 partition in Ubuntu: The tutorial is performed in Ubuntu A little knowledge about file ownership in Unix system would be a plus.
Even if you do not know, no worries. You can still follow the tutorial with ease. Just follow the steps below: First this, you need to know the UUID of the ext4 partition. But before that it will be better to know the name of partition.
The name, in Ubuntu, would be like sdaX or something.
You can find the name of the partition from its size, given under the Blocks field in bytes. So in the picture above roughly amounts to 78 Gb and thus it tells me that the partition name is sda7. Now when we have the name, we can find the UUID by using the following command: As you can see, with the partition name, we can easily identify the UUID.
Once we have the UUID, the next step is to find out where is the partition mounted. You can display the mounted partitions in the following manner:closed as off topic by Michael Petrotta, mu is too short, paxdiablo, Quentin, kapa Jun 19 '12 at Questions on Stack Overflow are expected to relate to programming within the scope defined by the kaja-net.comer editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope.
Example script shows an example to give w (write)/ r (read) / x (execute) permission to the given folder path /path/to/the/directory for USER1 and USER2. If you want to give only write access please replace rwx with w.
To best share with multiple users who should be able to write in /var/www, it should be assigned a common kaja-net.com example the default group for web content on Ubuntu and Debian is kaja-net.com sure all the users who need write access to /var/www are in this group..
sudo usermod -a -G www-data user>. In this article, we will explain how to give read/write access to a user on a specific directory in Linux using ACLs (Access Control Lists) and Group Permissions.
Managing Group Access.
Linux groups are a mechanism to manage a collection of computer system users. All Linux users have a user ID and a group ID and a unique numerical identification number called a userid (UID) and a groupid (GID) respectively. Securing and Hardening Red Hat Linux Production Systems A Practical Guide to Basic Linux Security in Production Enterprise Environments kaja-net.com