LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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-17-2004, 04:08 PM   #1
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Rep: Reputation: 30
Cannot change ownership


Can anyone explain why do i get these meessages everytime i try to untar a package? when i downloaded it said to be used with 2.4.X kernel and later.

(slackware 9.0 kernel 2.4.20)

code:

tar: Error exit delayed from previous errorstar: hsfmodem-6.03.00lnxt04051300full/etc/hsfmodem: Cannot change ownership to uid 500, gid 100: Operation not permitted
tar: Error exit delayed from previous errors

----------------------------------------------------

thanks!
 
Old 05-17-2004, 04:42 PM   #2
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
BTW does anyone know what is the hole in my "envelope" ?
(i noticed nobody else has it !) maybe people want to shoot me :-)
 
Old 05-17-2004, 06:58 PM   #3
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
I searched a little in the forums and most of the solutions were similar,in order to change ownership :


chown -R username.groupname /path/to/files


but why the hell does it need to change ownership uid to 500 i think 0 is root, right? and root is the only user on the system. can anyone give a hand here please, i have tar packages that i need to install and i am stuck with this . thanks in advance
 
Old 05-18-2004, 03:39 AM   #4
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
as matter of fact i remember now i couldnt compile any package on this machine.
 
Old 05-18-2004, 07:08 AM   #5
johnp
Member
 
Registered: Apr 2004
Distribution: Fedora Code 19
Posts: 30

Rep: Reputation: 15
To find out who uid 500 is try a cat /etc/passwd ??
 
Old 05-18-2004, 07:45 AM   #6
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
this is my /etc/passwd :


root:x:0:0::/root:/bin/bash
bin:x:1:1:bin:/bin:
daemon:x:2:2:daemon:/sbin:
adm:x:3:4:adm:/var/log:
lp:x:4:7:lp:/var/spool/lpd:
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/:
news:x:9:13:news:/usr/lib/news:
uucp:x:10:14:uucp:/var/spool/uucppublic:
operator:x:11:0perator:/root:/bin/bash
games:x:12:100:games:/usr/games:
ftp:x:14:50::/home/ftp:
smmsp:x:25:25:smmsp:/var/spool/clientmqueue:
mysql:x:27:27:MySQL:/var/lib/mysql:/bin/bash
rpc:x:32:32:RPC portmap user:/:/bin/false
gdm:x:42:42:GDM:/var/state/gdm:/bin/bash
pop:x:90:90:POP:/:
nobody:x:99:99:nobody:/:
sshd:x:33:33:sshd:/:


----------------------------------------------

what am i supposed change to correct it ? (just a guess)
 
Old 05-18-2004, 08:19 AM   #7
oneandoneis2
Senior Member
 
Registered: Nov 2003
Location: London, England
Distribution: Ubuntu
Posts: 1,460

Rep: Reputation: 46
Quote:
BTW does anyone know what is the hole in my "envelope" ?
It identifies a thread which you have posted in
 
Old 05-18-2004, 01:23 PM   #8
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
I found an article that talks about my problem, but thats way too extensive and complicated for me( i copie it tough, for later maybe).
I remember about setuid and stuff but i dont really know what to do, can anyone help here, please?
 
Old 05-18-2004, 01:28 PM   #9
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
if root is the only user(me), why do i have to change permissions at all ?
 
Old 05-18-2004, 02:00 PM   #10
ringwraith
Senior Member
 
Registered: Sep 2003
Location: Indiana
Distribution: Slackware-current
Posts: 1,244

Rep: Reputation: 47
because you should not be running as root. Root is only used in certain rare instances (installing programs, configuration). Running as root will eventually allow you to make mistakes that mess up your box. perhaps that is what has happened now. Also some apps will not run for root for security reasons.
 
Old 05-18-2004, 04:23 PM   #11
jamaso
Member
 
Registered: Oct 2001
Location: brasil
Distribution: mdrk 8.0,redht7.1,debianpotato
Posts: 615

Original Poster
Rep: Reputation: 30
thanks, i think i get it, i am going to create an account and see what happens !
 
Old 11-08-2010, 11:01 AM   #12
ozled
LQ Newbie
 
Registered: Apr 2006
Location: France
Distribution: FC4, Suse 10
Posts: 6

Rep: Reputation: 1
Belated answer

I know it has been a long time, but this thread appears at the top of the Google search so this may help someone.

When extracting with tar, the default for the root user is that tar attempts to retain the owner:group of the files originally stored in the tar.
When transferring tar files across systems, this may cause problem if the same user does not exist in the target machine.
Using the option --no-same-owner will force tar to extract the files and assign them root as owner.
The error does not appear when extracting with a normal user because in that case the default option is --no-same-owner.
 
1 members found this post helpful.
  


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
Change ownership apffal Suse/Novell 1 11-09-2005 02:08 AM
How to change ownership of a drive? raid517 Linux - Software 1 09-15-2005 08:15 AM
unable to change ownership arjunjeyaprakash Linux - Newbie 12 09-06-2005 02:02 PM
Couldn't change ownership on a Fat32 partition kt8993 Linux - Security 2 01-09-2005 10:21 AM
change ownership Johng Linux - General 4 04-06-2004 02:24 AM


All times are GMT -5. The time now is 07:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration