LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2005, 04:09 AM   #1
xsithlordx
Member
 
Registered: Oct 2005
Location: NYC
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39

Rep: Reputation: 15
Question su + permissions = nothing


Hi all!
I'm a total Linux n00b who is currently using Fedora Core 4.
I have installed MPLAYER (somehow)and so far so good, but I wanted to add all of the codecs(win32...)so I could enjoy my mpeg,wmv,divx movies. To make a long story short I downloaded Mplayers codec pack, it was a tar.bz2 and tried to extract it to /usr/local/lib/codecs,but it seems I don;t have permission to do this ?
I have even logged in as root using "Su"
and it got me nowhere. What am I doing incorrectly? I couldn't even create a folder to name it codecs in the lib folder either? I swore I was root when I used the "su" command. What gives?Nor was I able to drag the file to the folder either
I'm running out of ideas now and this is hours later. I'd appreciate any input or help.
 
Old 11-14-2005, 04:21 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
To make sure you are in fact root, after you 'su -', type 'id'. If it returns 0, then yes you are root. Can you paste the exact error message it says when you try to create that folder in that directory?

-twantrd
 
Old 11-14-2005, 05:58 AM   #3
sikofitt
LQ Newbie
 
Registered: Sep 2005
Location: brentwood, ca
Distribution: kubuntu desktop, ubuntu server, debian desktop
Posts: 21

Rep: Reputation: 15
why not just login as root instead of using su?
 
Old 11-14-2005, 04:02 PM   #4
xsithlordx
Member
 
Registered: Oct 2005
Location: NYC
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by sikofitt
why not just login as root instead of using su?
Hmm what do u mean by that? I thought I was root when I used the "su" command?
I don't know any other way to log in, this is all very new to me.
 
Old 11-14-2005, 04:44 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by xsithlordx
Hmm what do u mean by that? I thought I was root when I used the "su" command?
I don't know any other way to log in, this is all very new to me.
There's nothing to be gained by that, it's just more work.
 
Old 11-14-2005, 04:46 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Hmm what do u mean by that? I thought I was root when I used the "su" command?
I don't know any other way to log in, this is all very new to me.
You're right, you ARE root with a su, however, with a
su as opposed to a "su -" you keep the normal users
environment, not that that should impact on permissions,
though.

What exactly is the invocation of tar you're using to
unpack the codecs, from where are you doing it?




Cheers,
Tink
 
Old 11-14-2005, 07:45 PM   #7
xsithlordx
Member
 
Registered: Oct 2005
Location: NYC
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39

Original Poster
Rep: Reputation: 15
the file is "essential-20050412.tar.bz2". Its all of the codecs for Mplayer it will allow me to play almost every file type...win32 codecs all of that. I have no idea what to do. This is so crazy. I just want to watch a few videos on my box
Anyways hopefully with ur help I can get this to work. Here are some of my other issues.

How come when I use Yum_extender when I see something I want to install it says they're missing dependencies , like I need to also get those files but they are not included ? I don't understand the logic here? Also I need to edit the yum.conf file but it was read me only. I ws not able to make changes to add repos



I also would like to know how to see my 2 other XP machines and swap files over my network. I had no idea how to do that with SUSE and now I have FC4 its still a problem. Everything I read has just given me more questions. How come there isn't a sticky for these things? BTW the search function is acting weird

I hope I'm not asking for too much, either way I will accept any help and ur good deed won't go unoticed
 
Old 11-14-2005, 08:09 PM   #8
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
to extract the files you would
tar xjvf cornbread.tar.bz2
then as su
cp cornbread/* /usr/local/lib/codecs/

did you type id while logged in as su and did it return 0?
 
Old 11-14-2005, 08:45 PM   #9
xsithlordx
Member
 
Registered: Oct 2005
Location: NYC
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by twantrd
To make sure you are in fact root, after you 'su -', type 'id'. If it returns 0, then yes you are root. Can you paste the exact error message it says when you try to create that folder in that directory?

-twantrd
[cam@localhost ~]$ su
Password:
[root@localhost cam]# id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel) context=root:system_r:unconfined_t
[root@localhost cam]#


I can't make sense of this. I assume I'm not root since I see a "0" there
 
Old 11-14-2005, 08:49 PM   #10
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
no, you are root.
now try
tar xjvf cornbread.tar.bz2
then
cp cornbread/* /usr/local/lib/codecs/
 
Old 11-14-2005, 09:05 PM   #11
xsithlordx
Member
 
Registered: Oct 2005
Location: NYC
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bosewicht
no, you are root.
now try
tar xjvf cornbread.tar.bz2
then
cp cornbread/* /usr/local/lib/codecs/
Ok it extracted some where, though when I input the second part I get this message:
cp: missing destination file
Try `cp --help' for more information.
[root@localhost cam]#

Also do I have to make the codec folder? It doesn't exsit yet,is that why it failed?

I noticed that the extracted folder is now in my home folder,it has a small red "lock" over it
Now what? I'm listening attentively

Last edited by xsithlordx; 11-14-2005 at 09:13 PM.
 
Old 11-14-2005, 09:13 PM   #12
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
do a ls and it should show you all of your files in the current dir, where you just extracted it too. yours would be "essential/" probably. Those are the files you want to copy or mv to the destination dir.

do you have a /usr/local/lib/codecs/ ? is that where it should go?
try "whereis codecs" without the quotes
 
Old 11-14-2005, 09:20 PM   #13
xsithlordx
Member
 
Registered: Oct 2005
Location: NYC
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by bosewicht
do a ls and it should show you all of your files in the current dir, where you just extracted it too. yours would be "essential/" probably. Those are the files you want to copy or mv to the destination dir.

do you have a /usr/local/lib/codecs/ ? is that where it should go?
try "whereis codecs" without the quotes
[root@localhost cam]# ls
Azureus_2.3.0.4_linux.GTK.tar.bz2 essential-20050412
Desktop essential-20050412.tar.bz2
[root@localhost cam]#
the above files are in the home folder,and no there is no codec folder as of yet in /local /lib. I tried to make one manually, but there was no option to do so sadly. I feel like I'm almost there. Can I do this via the terminal(make a folder or directory?)then execute the command?Yes that is where it should go,to answer ur question.

Last edited by xsithlordx; 11-14-2005 at 09:23 PM.
 
Old 11-14-2005, 09:23 PM   #14
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
if you are positive that is where mplayer is looking for the codecs, then just do a
mkdir /usr/local/lib/codecs/
then
cp essential-20050412/* /usr/local/lib/codecs/
 
Old 11-14-2005, 09:34 PM   #15
xsithlordx
Member
 
Registered: Oct 2005
Location: NYC
Distribution: SUSE 10, but wanna try Fedora Core 4
Posts: 39

Original Poster
Rep: Reputation: 15
alright, it worked, but it seems that the video file (wmv) is not playig, I'm getting :
Error opening/initializng the selected video_out(-vo) device

Hmmm I wonder what happened ?
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
permission ... permissions .... permissions alaios Linux - General 1 05-31-2005 05:16 AM
getting a directory's permissions and creating a new one with the same permissions newbie1000101 Programming 1 04-10-2004 01:52 PM
permissions JROCK1980 Linux - Software 6 04-09-2004 05:03 AM
need help with permissions hbbtstar Linux - Newbie 4 10-13-2003 07:02 AM


All times are GMT -5. The time now is 01:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration