Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322369 - sys-block/tw_cli-9.5.2: /sbin/tw_cli has useless permissions
Summary: sys-block/tw_cli-9.5.2: /sbin/tw_cli has useless permissions
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-01 14:00 UTC by bugs.gentoo
Modified: 2010-06-01 14:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.gentoo 2010-06-01 14:00:16 UTC
/sbin/tw_cli has the permissions 755. But that is useless because when executing as normal user, there comes the message from tw_cli 
"Only root/administrator can run this program."

standard permissions should be adequate to program usage demands (root:root 700 ?)

Reproducible: Always

Steps to Reproduce:
1. run /sbin/tw_cli as unprivileged user

Actual Results:  
exit code 1 with message
"Only root/administrator can run this program."

Expected Results:  
message
"/sbin/tw_cli: Permission denied"
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-06-01 14:45:29 UTC
/sbin is not in $PATH for normal user exactly because you are not supposed to be executing them without root.  there is no suid/sgid involved here, therefore it would be pointless to make it 700.  you pretty much created the "problem" yourself by trying to execute it with full path.