Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-29-2014, 03:02 PM
|
#1
|
Member
Registered: Jan 2012
Distribution: Slackware
Posts: 92
Rep:
|
Ownership of /etc/profile.d/gtk+.{sh,csh} in Slackware64 14.1
Hi everybody,
I've noticed that the files:
/etc/profile.d/gtk+.sh
/etc/profile.d/gtk+.csh
seem to have wrong ownership (3356:users instead of root:root like other files in the directory).
It should be just a cosmetic issue, but I thought to report it anyway.
Can you confirm?
Thanks!
Last edited by sanjioh; 09-29-2014 at 03:28 PM.
|
|
|
09-29-2014, 03:18 PM
|
#2
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,220
Rep:
|
No. For instance (Slackware 14.1):
Code:
/tmp$ bzgrep gtk+.sh MANIFEST.bz2
-rwxr-xr-x root/root 44 2010-12-09 13:13 etc/profile.d/gtk+.sh
/tmp$
So ownership has been modified in your system since its installation.
The file MANIFEST.bz2 has been found here.
Last edited by Didier Spaier; 09-29-2014 at 03:20 PM.
|
|
|
09-29-2014, 03:22 PM
|
#3
|
Member
Registered: Jan 2012
Distribution: Slackware
Posts: 92
Original Poster
Rep:
|
Yes, I did the same check against FILELIST.TXT, but then I tried to uninstall and reinstall the gtk+2 package and got the same ownership on those files.
EDIT
Ok, my bad, I didn't specify I'm using Slackware64. But still:
Quote:
bash-4.2$ bzgrep gtk+.sh MANIFEST.bz2
-rwxr-xr-x 3356/users 44 2010-12-09 13:13 etc/profile.d/gtk+.sh
|
Last edited by sanjioh; 09-29-2014 at 03:28 PM.
|
|
|
09-29-2014, 03:28 PM
|
#4
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,220
Rep:
|
If a file has been modified since its installation it's not removed by removepkg.
Do a removepkg again, then remove these two files yourself, then do an installpkg and see what happens.
PS I didn't see your EDIT before posting. I get your results with Slackware64-14.1 using mirror slackware.mirrors.ovh.net.
So yes something seems to be wrong. I'll try with slackware.com to make sure it's not a problem with the mirror.
Last edited by Didier Spaier; 09-29-2014 at 04:49 PM.
Reason: Wrong an,swer deleted
|
|
|
09-29-2014, 03:33 PM
|
#5
|
Member
Registered: Jan 2012
Distribution: Slackware
Posts: 92
Original Poster
Rep:
|
removepkg actually removed those files; I've edited my previous reply (tl;dr: ownership is wrong on Slackware64)
|
|
|
09-29-2014, 03:48 PM
|
#6
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,220
Rep:
|
Same issue with http://ftp.slackware.com/pub/slackwa...1/slackware64/
Code:
/tmp$ bzgrep gtk+.sh MANIFEST.bz2
-rwxr-xr-x 3356/users 44 2010-12-09 13:13 etc/profile.d/gtk+.sh
/tmp$
PS I also checked in an ISO image, only these two files have this ownership...
Last edited by Didier Spaier; 09-29-2014 at 03:57 PM.
|
|
1 members found this post helpful.
|
09-29-2014, 04:40 PM
|
#7
|
Slackware Maintainer
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,847
|
Yeah, that's wrong. It's rworkman's UID and it looks like I forgot to chown everything to root before building the x86_64 package (but at least I got it right on 32-bit).
Thanks for the heads-up.
|
|
3 members found this post helpful.
|
09-29-2014, 05:31 PM
|
#8
|
Member
Registered: Jan 2012
Distribution: Slackware
Posts: 92
Original Poster
Rep:
|
Thanks to you, Pat
|
|
|
09-29-2014, 08:38 PM
|
#9
|
Member
Registered: Jun 2004
Distribution: Slackware
Posts: 241
Rep:
|
Same issue as this thread from long ago. Thanks Pat for the explanation, I'll mark that one as solved.
Quote:
Originally Posted by Didier Spaier
If a file has been modified since its installation it's not removed by removepkg.
|
How does it determine if a file has been modified? mtime? Some checksum database?
|
|
|
09-29-2014, 10:22 PM
|
#10
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,220
Rep:
|
mtime is used:
Code:
delete_files() {
while read FILE ; do
if [ ! -d "$ROOT/$FILE" ]; then
if [ -r "$ROOT/$FILE" ]; then
if [ "$ROOT/$FILE" -nt "$ADM_DIR/packages/$PKGNAME" ]; then
echo "WARNING: $ROOT/$FILE changed after package installation."
fi
if [ ! "$WARN" = "true" ]; then
echo " --> Deleting $ROOT/$FILE"
preserve_file "$FILE" && rm -f "$ROOT/$FILE"
else
echo " --> $ROOT/$FILE would be deleted"
preserve_file "$FILE"
fi
else
echo " --> $ROOT/$FILE no longer exists. Skipping."
fi
else
preserve_dir "$FILE"
fi
done
}
Last edited by Didier Spaier; 09-29-2014 at 10:27 PM.
|
|
|
All times are GMT -5. The time now is 10:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|