LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-29-2014, 02:02 PM   #1
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
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 02:28 PM.
 
Old 09-29-2014, 02:18 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
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 02:20 PM.
 
Old 09-29-2014, 02:22 PM   #3
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: Disabled
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 02:28 PM.
 
Old 09-29-2014, 02:28 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
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 03:49 PM. Reason: Wrong an,swer deleted
 
Old 09-29-2014, 02:33 PM   #5
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: Disabled
removepkg actually removed those files; I've edited my previous reply (tl;dr: ownership is wrong on Slackware64)
 
Old 09-29-2014, 02:48 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
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 02:57 PM.
 
1 members found this post helpful.
Old 09-29-2014, 03:40 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,524

Rep: Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493Reputation: 8493
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.
Old 09-29-2014, 04:31 PM   #8
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Original Poster
Rep: Reputation: Disabled
Thanks to you, Pat
 
Old 09-29-2014, 07:38 PM   #9
elyk
Member
 
Registered: Jun 2004
Distribution: Slackware
Posts: 241

Rep: Reputation: 49
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 View Post
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?
 
Old 09-29-2014, 09:22 PM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,064

Rep: Reputation: Disabled
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 09:27 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Root ownership vs wheel ownership StupidNewbie Linux - Security 2 08-08-2012 12:52 PM
Slackware bash profile ibwew Slackware 10 09-13-2009 12:36 PM
help deleted /etc/profile slackware 10 rickict Slackware 11 04-08-2005 10:36 PM
Huge /etc/profile problem in Slackware 10.0 digitalbrush Slackware 3 01-28-2005 05:52 PM
What is /etc/profile.d in Slackware 10? rsamurti Slackware - Installation 1 10-17-2004 11:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration