Description of problem: Trying to create a new device file via mknod-b(block device file) or mknod-c(char device), the permission of the newly created file is not correctly by mknod. Version-Release number of selected component (if applicable): libguestfs-1.0.85-1.fc12.3.x86_64 How reproducible: Always Steps to Reproduce: 1. Create a new device file via mknod-b ><fs> mknod-b 0770 8 1 /dev/sdg 2. Check the permission of the device file ><fs> ll /dev/sdg brwxr-x--- 1 root root 8, 1 Apr 15 09:46 /sysroot/dev/sdg Actual results: The permission is not set correctly. Expected results: Permission is set correctly. Additional info: For char file, the permission is also not set correctly. ><fs> mknod-c 0770 5 1 /dev/char ><fs> ll /dev/char crwxr-x--- 1 root root 5, 1 Apr 15 09:50 /sysroot/dev/char
This is expected. For the default umask is 022.
Reopen this bug for it it unreasonable for umask to take effect when mode has been set explicitly.
(In reply to comment #2) > Reopen this bug for it it unreasonable for umask to take effect when mode has > been set explicitly. I think we need a 'mknod-mode' command.
We cannot change this (it's ABI). See also: https://bugzilla.redhat.com/show_bug.cgi?id=583554#c1
libguestfs-1.2.3-1.el5 has been submitted as an update for Fedora EPEL 5. http://admin.fedoraproject.org/updates/libguestfs-1.2.3-1.el5
libguestfs-1.2.3-1.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/libguestfs-1.2.3-1.fc13
libguestfs-1.2.3-1.fc12.6 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/libguestfs-1.2.3-1.fc12.6
libguestfs-1.2.3-1.el5 has been pushed to the Fedora EPEL 5 stable repository. If problems still persist, please make note of it in this bug report.