Need root permission to read/write disk after formating it, how to set it up so as it is not needed?
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
Following the wiki guide https://trisquel.info/en/wiki/how-format-external-storage-device-using-parted
When all is done I need root permission to read/write the disk. Is it something I can do so root is not needed to read/write disk?
I got it. I was using fat32 instead of the guide's ext3, so in the last step I was supposed to use "mkfs.vfat" and not "mkfs.ext3"
If you format (create file system on) a block device using ext file systems, you always need elevated privilege to write to the root directory.
Whenever I reformat my computer and connect my USB drives to it, I always have an issue where I need root to access my files because I used my admin user account, which had root priveleges. Usually I need to do "chown -R david:david" and/or "chown -R david:root" over my files so I can access them normally. before I override the ownership on those files they are usually owned by "1001" -- no idea what that means.
I just wanted to share I have some oddness after reformatting my computer too. If anyone has ideas on a nicer way to handle this, i'm all ears.
The owner and the group of a file, written in its metadata, are numbers called uid and gid, respectively. The files /etc/passwd and /etc/group map those numbers to, respectively, a user name and a group name. That is what is normally shown... unless the number is absent from the file.
When you add a user or a group, you can choose its id. Otherwise, the first available id, in a predefined interval, is automatically chosen. On Trisquel, that interval starts at 1000. In other words, the user created at the install has that id, the next user is, by default, 1001, etc.
- Vous devez vous identifier ou créer un compte pour écrire des commentaires