LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-20-2005, 08:51 PM   #1
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Rep: Reputation: 15
Who can tell me why? (user and group)


http://www.linuxsir.org/bbs/attachme...chmentid=25661

shad@perfect:/$ pwd
/
shad@perfect:/$ ls -l
总用量 86
drwxr-xr-x 2 root bin 2512 2005-05-08 20:54 bin/
drwxr-xr-x 2 root root 400 2005-05-08 22:56 boot/
drwxr-xr-x 15 root root 62520 2005-05-21 08:29 dev/
drwxrwxrwx 9 root root 264 2005-05-15 11:06 EIO_Binders/
drwxr-xr-x 53 shad users 5400 2005-05-21 08:28 etc/
drwxr-xr-x 5 root root 96 2005-05-08 13:34 home/
drwxr-xr-x 4 root root 3248 2005-05-08 20:54 lib/
drwxr-xr-x 9 root root 216 2002-03-16 15:34 mnt/
drwxr-xr-x 4 root root 96 2004-11-26 07:46 opt/
dr-xr-xr-x 68 root root 0 2005-05-21 16:28 proc/
drwx--x--- 14 root root 600 2005-05-20 18:27 root/
drwxr-xr-x 2 root bin 6456 2004-06-07 15:22 sbin/
drwxr-xr-x 2 root root 48 2004-05-12 12:03 sys/
drwxrwxrwt 16 root root 600 2005-05-21 08:30 tmp/
drwxr-xr-x 20 shad users 568 2005-05-18 13:35 usr/
drwxr-xr-x 16 root root 456 2004-07-27 11:10 var/
shad@perfect:/$
 
Old 05-20-2005, 09:01 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 52
ah...would you mind telling the Q ?

egag
 
Old 05-20-2005, 09:09 PM   #3
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Original Poster
Rep: Reputation: 15
OK, I'm sorry.
The question is: why the directory "/usr", "/etc" and so on are owned by a normal user?
Thank you!
 
Old 05-20-2005, 09:39 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Why they're owned by a normal user? That's difficult to know, you could've used chown command in a wrong way, installed a badly made package (this can happen if you made a package in wrong way, Slackware official and Linuxpackages.net are always checked) which someway changed your permissions, installed a program which handle permissions in a wrong way, etc.
It will be likely a bad made package, since the directories that has wrong permissions are the ones that software use to install itself.
It's sad to say, but reverting the permissions won't be easy if they were changed recursively that means the owner changes affected all under those directories (just get into /usr and make another ls to check this), there was a discussion about this some days ago where there was a link to a script that could handle this mostly automatically (only worked for official slackware packages).

Last edited by gbonvehi; 05-20-2005 at 09:42 PM.
 
Old 05-20-2005, 11:52 PM   #5
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Original Poster
Rep: Reputation: 15
Thank you gbonvehi.
Now I know why it is. I had a d4x rpm package, and I do "rpm2tgz" with normal user, then "su -", "installpkg d4x*tgz", so it change the related dirctories' permissions.
I solve it like this: remove d4x and make another tgz package with root, then install it.

Last edited by shadkong; 05-20-2005 at 11:56 PM.
 
Old 05-21-2005, 01:00 AM   #6
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 51
Glad it worked
To avoid problems with rpm2tgz like the on you had, you can try first looking for Slackware packages here: http://www.linuxpackages.net/
Example, this is d4x Slackware package: http://www.linuxpackages.net/search_...e=d4x&ver=10.1
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to list user in Linux box, add an user to a group! steady_lfcfan Linux - Newbie 12 01-27-2013 02:14 PM
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-13-2005 12:16 AM
after adding user to group peter72 Linux - General 2 08-01-2005 11:17 AM
User and Group Management tinman77 Linux - Newbie 5 12-10-2004 01:46 PM
user group questions Abe_the_Man Slackware 5 01-10-2004 12:09 PM

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

All times are GMT -5. The time now is 06:59 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration