Changes ownership of root directory to hplip:lp
Bug #191299 reported by
Matt Zimmerman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hplip (Ubuntu) |
Fix Released
|
High
|
Till Kamppeter | ||
Gutsy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hplip
I noticed that my root directory had incorrect ownership:
mizar:[~] ls -ld /
drwxr-xr-x 22 hplip lp 4096 2008-01-14 12:25 /
mizar:[~] stat /
File: `/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 801h/2049d Inode: 2 Links: 22
Access: (0755/drwxr-xr-x) Uid: ( 108/ hplip) Gid: ( 7/ lp)
Access: 2008-01-14 12:32:01.000000000 +0000
Modify: 2008-01-14 12:25:19.000000000 +0000
Change: 2008-01-14 12:25:19.000000000 +0000
I'm only guessing that hplip is at fault, but it seems a good place to start.
Related branches
Changed in hplip: | |
assignee: | nobody → till-kamppeter |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in hplip: | |
status: | Confirmed → In Progress |
Changed in hplip: | |
status: | New → Confirmed |
To post a comment you must log in.
This looks rather fragile...
# Correct ownership of personal HPLIP config files of the users
user= `echo $line | cut -d : -f 1`;
homedir= `echo $line | cut -d : -f 6`;
find $homedir -maxdepth 1 -not -user $user -name .hplip* \
- exec chown $user '{}' \; 2>/dev/null || :
# (in older HPLIP versions hp-setup created these files with root
# permissions and made hp-toolbox crashing)
for line in `cat /etc/passwd | sed -e 's/ //g'`; do
[ -d $homedir ] && \
done