Comment 3 for bug 1567473

Revision history for this message
bugproxy (bugproxy) wrote : Comment bridged from LTC Bugzilla

------- Comment From <email address hidden> 2016-05-02 12:32 EDT-------
While trying to verify this bug, I found the following issue:

I have three users: root, tsuser (member of group ts-shell) and test

tsuser@s8330003:/var/log/ts-shell$ groups tsuser test
tsuser : tsuser ts-shell

test@s8330003:/var/log/ts-shell$ groups test
test : test

The issue is: User tsuser is not allowed to write to /var/log/ts-shell

tsuser@s8330003:/var/log/ts-shell$ echo created_TS > /var/log/ts-shell/created_by_tsuser
-bash: /var/log/ts-shell/created_by_tsuser: Permission denied

This is caused by an improper permission setting during creation of the directory /var/log/ts-shell. mkdir -p 3770 /var/log/ts-shell creates a _directory_ 3770 (!) under /var/log and does NOT set the permissions. If I delete the 3770 and ts-shell directory and execute
mkdir -m 3770 /var/log/ts-shell
instead, it looks fine and works as expected. So this must be fixed in /var/lib/dpkg/info/s390-tools.postinst.

Reopening this bug.