Hot answers tagged

15

In the image you show that the "other" group has read permissions; if you tried to append echo testline >> useradd or execute ./useradd it would give you a permission denied. If you're looking to remove read permissions for the 'other' users you can use sudo chmod o-r useradd


7

I believe it is because the permission on the useradd file is set to rw-r--r--, thus giving read access to all users.


1

Yes, doing it as the root user would allow you to change the permissions on (and owner of) these files and directories. $ cd /backup/dir/somewhere $ sudo chown myname:mygroup myfile $ sudo chmod u+rw myfile ... where myname and mygroup is your username and default group (check you other files in your home directory or use id -n -u (for username) and id -n ...


1

You didn't specify the OS of the server, nor the server code. If it's the standard Linux client then you specify "insecure" as part of the export eg /directory server(rw,no_root_squash,async,insecure)


1

The USERCTL parameter does not mean what you think it means. From: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/3/html/Reference_Guide/s1-networkscripts-interfaces.html (same meaning in later versions): USERCTL=<answer>, where <answer> is one of the following: yes — Non-root users are allowed to control this ...


1

i believe auto(option in fstab) is always performed as root, and user option is only tells to the mounter that it allows accept requests from simple users. here is what happening: you insert drive, system recognize it, automount it (as root) and user become unable to unmount it if user is not in the root group. you can delete auto option (or better supply ...


1

If you need to unpack initramfs and repack it later you can use -s/-i options to store fakeroot environment in a file. $ mkdir initrd $ cd initrd $ zcat ../initrd.gz | fakeroot -s ../initrd.fakeroot cpio -i Now you have file with fakeroot environment containing something like that: … dev=fe05,ino=20326044,mode=120777,uid=0,gid=0,nlink=1,rdev=0 dev=...



Only top voted, non community-wiki answers of a minimum length are eligible