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 05-05-2007, 06:07 AM   #1
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Rep: Reputation: 30
installpkg to user instead of root?


hello
I've done few minutes ago : installpkg amsn.....tgz (as root of-course), and it did installed amsn, but as root only!
now, how can I use amsn as regular user since amsn was installed (so it appears) only as root.
and I'm not going to use it as root... help?
 
Old 05-05-2007, 06:14 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
in what way can't you use it? everyone should be able to... error messages?
 
Old 05-05-2007, 07:30 AM   #3
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
Probably the ownership and the permission are wrong. What about ls -l /usr/bin/yourExecutable?
 
Old 05-05-2007, 08:41 AM   #4
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
what's goin on ?! the chown wasn't working :S

Code:
root@WhiteCastle zuki #ls -l /usr/bin/amsn
lrwxrwxrwx 1 root root 18 2007-05-05 14:03 /usr/bin/amsn -> ../share/amsn/amsn
root@WhiteCastle zuki #chown zuki /usr/bin/amsn
root@WhiteCastle zuki #chown zuki /usr/share/amsn
root@WhiteCastle zuki #chown zuki /usr/share/amsn/*
root@WhiteCastle zuki #ls -l /usr/bin/amsn
lrwxrwxrwx 1 root root 18 2007-05-05 14:03 /usr/bin/amsn -> ../share/amsn/amsn
 
Old 05-05-2007, 11:14 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why chown anything??!?
 
Old 05-05-2007, 01:47 PM   #6
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by acid_kewpie
why chown anything??!?
to change ownership!?

do you suggest something wrong? are my elements are wrong? if so, correct me so I will do better.

thanks.
 
Old 05-05-2007, 01:59 PM   #7
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 37
It's normal that the file belongs to root and the permissions allow others to execute it. Maybe you should post the output of running amsn from a terminal. It's probably a missing library or something.
 
Old 05-05-2007, 02:22 PM   #8
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware
Posts: 573

Rep: Reputation: 59
It might also be informative to run
Code:
ldd `which amsn`
 
Old 05-05-2007, 03:23 PM   #9
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
I guess I didn't explain myself good enough.
There is not executable to regular user, but only the the root , you'll fully understand it from here :
Code:
zuki@WhiteCastle ebooks #amsn
-bash: amsn: command not found
zuki@WhiteCastle ebooks #ldd `which amsn`
which: no amsn in (/home/zuki/.progz/ActivePython-2.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.)
ldd: missing file arguments
Try `ldd --help' for more information.
zuki@WhiteCastle ebooks #su
Password:
Hello ROOT! I hope Zuki sent you, have a good day!
root@WhiteCastle ebooks #ldd `which amsn`
        not a dynamic executable
 
Old 05-06-2007, 03:26 AM   #10
Valkyrie_of_valhalla
Member
 
Registered: Jan 2006
Location: Romania
Distribution: Suse 12.0, Slackware 12.1, Debian, Ubuntu, Gentoo
Posts: 301

Rep: Reputation: 30
Hmm, doesn't seem like a permissions problem. More likely, you don't have /usr/bin in your path (which is a bit weird).

Try running it by the full path, aka "/usr/bin/amsn/" and it should work.

Also check the output of $PATH, and see if /usr/bin is there.

Try typing in:
PATH="$PATH:/usr/bin"
export PATH
 
Old 05-06-2007, 03:40 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well from the which output, it is in the path. what does "ls -l /usr/bin/amsn" say? also you have "." in your path... bad idea, you shouldn't have done that.
 
Old 05-06-2007, 04:06 AM   #12
ludist
Member
 
Registered: Nov 2005
Location: Greece
Distribution: Slackware
Posts: 172

Rep: Reputation: 21
@Valkyrie: It DOES has have /usr/bin in his PATH.

((if amsn is an "official" package, possibly the problem is in your setup, not in the package))

Quote:
Originally Posted by itz2000
what's goin on ?! the chown wasn't working :S
Excuse me, I don't know what I was thinking about owner, only permissions are necessary to *investigate*, don't edit yet :-)

Quote:
root@WhiteCastle zuki #ls -l /usr/bin/amsn
lrwxrwxrwx 1 root root 18 2007-05-05 14:03 /usr/bin/amsn -> ../share/amsn/amsn
/usr/bin/amsn is a link. So, check the destination, not the link

root@WhiteCastle zuki #chown zuki /usr/share/amsn/*
Quote:
root@WhiteCastle zuki #ls -l /usr/bin/amsn
Check with ls -l /usr/share/ | grep amsn
and ls -l /usr/share/amsn/

Last edited by ludist; 05-06-2007 at 04:31 AM.
 
Old 05-07-2007, 01:57 PM   #13
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
here are answers for what you've posted ... I still need help :

Code:
zuki@WhiteCastle ebooks #echo $PATH
/home/zuki/.progz/ActivePython-2.5/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/opt/www/htdig/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/opt/kde/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:.
zuki@WhiteCastle ebooks #/usr/bin/amsn
-bash: /usr/bin/amsn: Permission denied
zuki@WhiteCastle ebooks #ls -l /usr/bin/amsn
lrwxrwxrwx 1 root root 18 2007-05-05 14:03 /usr/bin/amsn -> ../share/amsn/amsn
zuki@WhiteCastle ebooks #ls -l /usr/share/amsn/amsn
/bin/ls: /usr/share/amsn/amsn: Permission denied
zuki@WhiteCastle ebooks #su root -c "ls -l /usr/share/amsn/amsn"
Password:
-rwxr-xr-x 1 zuki users 9894 2006-11-30 01:42 /usr/share/amsn/amsn
 
Old 05-07-2007, 02:14 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok well start by taking out the incorrect ownerships...

chown root:root /usr/share/amsn/amsn

and try again. but looking at it, you've no permission to read /usr/share/amsn. what does "ls -l /usr/share/" show about the propreties of the amsn directory?
 
Old 05-07-2007, 02:50 PM   #15
itz2000
Member
 
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732

Original Poster
Rep: Reputation: 30
Code:
drw-r--r--   8 zuki root   4096 2006-12-14 18:56 amsn
 
  


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
Adding root privaliges to user accounts or auto login as root Val-Ent Linux - General 15 03-02-2010 04:27 PM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 08:51 AM
Games runs slow as normal user, but fast as root user mcore Linux - Software 2 06-07-2004 11:11 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
Why does kppp.desktop require root userid for non-root user? rdaves@earthlink.net Linux - Networking 4 08-27-2001 09:18 AM

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

All times are GMT -5. The time now is 11:18 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
Open Source Consulting | Domain Registration