Description of problem: # rpm --setperms screen # screen -r Directory '/var/run/screen' must have mode 777. Version-Release number of selected component (if applicable): screen-4.1.0-0.3.20101110git066b098.fc15.x86_64 How reproducible: Every time. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
Can you please send me some example or log, where this is an issue?
Do this: chmod 0 /var/run/screen rpm --setperms screen screen -r Then you will see the error.
/var/run/screen has permission drwxrwxr-x /usr/bin/screen has permission -rwxr-sr-x Because screen has setgid flag, it can write into /var/run/screen under all users. Check please that your binary has set correct permissions.
# ls -la /usr/bin/screen -rwxr-xr-x. 1 root screen 437376 Feb 10 2011 /usr/bin/screen # rpm --setperms /usr/bin/screen # ls -la /usr/bin/screen -rwxr-xr-x. 1 root screen 437376 Feb 10 2011 /usr/bin/screen Are the permissions in the package wrong?
Permissions in package seem to be correct # rpm -qlv screen | grep '/usr/bin/screen' -rwxr-sr-x 1 root screen 432608 úno 10 2011 /usr/bin/screen In your previous example --setperms /usr/bin/screen does not work, use --setperms screen # ls -l /usr/bin/screen -rwxr-sr-x. 1 root screen 437376 10. úno 2011 /usr/bin/screen # chmod 000 /usr/bin/screen # ls -l /usr/bin/screen ----------. 1 root screen 437376 10. úno 2011 /usr/bin/screen # rpm --setperms /usr/bin/screen # ls -l /usr/bin/screen ----------. 1 root screen 437376 10. úno 2011 /usr/bin/screen # rpm --setperms screen # ls -l /usr/bin/screen -rwxr-sr-x. 1 root screen 437376 10. úno 2011 /usr/bin/screen
Thanks. I wonder how that got changed. Would it be possible that the error message be updated to mention that the screen binary may have the wrong permissions (since the error about directory permissions will always be bogus).
Can you please post result of rpm -q screen rpm -qlv screen | grep '/usr/bin/screen' to be sure, that there is no problem in package
screen-4.1.0-0.3.20101110git066b098.fc15.x86_64 -rwxr-sr-x 1 root screen 432608 Feb 10 2011 /usr/bin/screen
I looked at generating the error message and I don't think that it is wrong, because it is created according to permission of binary.
So my problem was that the permissions of the binary were wrong, but I got an error about the permissions for the /var/run/screen directory being wrong. So the logic can't be right?
The error message is based on actual permission of the binary, so if yours are different it tells you how to set permissions of directory with sockets.