LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2004, 08:52 PM   #1
mackdady
LQ Newbie
 
Registered: Mar 2004
Location: Bangor, WA
Distribution: Fedora
Posts: 3

Rep: Reputation: 0
Question Permission Denied when logged in as root?


I was trying to install the drivers for my INTEL 845GSRV audio card (using the latest Fedora build) per their directions included in a PDF file, while logged in as root and keep getting permission denied as shown below?

two questions
1. how do i install this audio driver
2. why is root denied anything? or how do i undo it?



[root@Highlands root]# dir
anaconda-ks.cfg drivers install.log.syslog upgrade.log
Desktop evolution programs upgrade.log.syslog
documents install.log tmp
[root@Highlands root]# cd drivers
[root@Highlands drivers]# dir
audio
[root@Highlands drivers]# cd audio
[root@Highlands audio]# dir
intel8x0-alsa-1.0.1.sh
[root@Highlands audio]# ./intel8x0-alsa-1.0.1.sh
bash: ./intel8x0-alsa-1.0.1.sh: Permission denied
[root@Highlands audio]#


Thanks in advance for ANY help!
 
Old 03-24-2004, 08:54 PM   #2
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
What's the output of:

ls -l

issued in /root/drivers/audio? Is the sh script executable?
 
Old 03-24-2004, 08:59 PM   #3
eccles23
Member
 
Registered: Jun 2003
Location: Australia
Distribution: Gentoo/kernel 2.6.2
Posts: 45

Rep: Reputation: 15
well it clearly isn't.

chmod +x filename
 
Old 03-24-2004, 09:05 PM   #4
mackdady
LQ Newbie
 
Registered: Mar 2004
Location: Bangor, WA
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by pingswept
What's the output of:

ls -l

issued in /root/drivers/audio? Is the sh script executable?
[root@Highlands audio]# ls -l
total 2496
-rw-rw-rw- 1 root root 2550958 Mar 24 17:17 intel8x0-alsa-1.0.1.sh
[root@Highlands audio]#
 
Old 03-24-2004, 09:10 PM   #5
mackdady
LQ Newbie
 
Registered: Mar 2004
Location: Bangor, WA
Distribution: Fedora
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by eccles23
well it clearly isn't.

chmod +x filename
that got me futher! it actually started to run the file, what did the +x do?
 
Old 03-24-2004, 09:22 PM   #6
Pwnz3r
Member
 
Registered: Jan 2004
Location: Lancaster, OH
Distribution: Gentoo
Posts: 393

Rep: Reputation: 30
It made the file executable. Now, it might help to edit /etc/group so that the user you want to use audio as is in the audio group.
 
Old 03-30-2004, 04:31 PM   #7
eccles23
Member
 
Registered: Jun 2003
Location: Australia
Distribution: Gentoo/kernel 2.6.2
Posts: 45

Rep: Reputation: 15
Yep... it's what Pingswept would have told you to do next after seeing that output...

I don't know how much about linux permissions you know, but that string at the start of the output (rw-rw-rw-) are the modes of the file...

it goes: UUUGGGEEE (U=user, G=group, E=everyone).
and the modes are rwx (read, write, execute).

so that file was read/write for user root, read/write for group root, and read/write for everyone else as well...

the chmod (change mode) +x (add execute) adds the execute bit to the file...
so it wasn't an access permission root was having it was an execute problem - the file was not set to be allowed to be executed.

the three permissions (rwx) can be thought of as three 'bits'... ie 210... (so the binary value of each one is 2 raised to the power of one of those numbers)... ie: 4,2,1...

so say you had just wanted to let root execute that... then you could have said:

chmod 766 <filename>... ie the USER permission becomes 7 (= 4 + 2 + 1, ie r + w + x), and the GROUP permission becomes 6 ( = 4 + 2) (ie r + w ) and the same for everyone else.

That's how you set the exact permissions you want on something.
and if you wanted a small set of people to access something, you could do something like:

create a group called 'audio' (groupadd audio), then change the group of the file to 'audio'
(eg chown root:audio /dev/dsp ) and then add the users you want to allow access to to that group (eg usermod -G audio,<other groups> <username>) - you have to find out what groups you are currently a member of first tho (groups <username>) so you can add them to the list, else it will remove you from those groups.

I have actually found it useful to mount drives (eg NTFS drives) with the GID option (ie the group id - which you can find by doing 'grep <group name> /etc/groups') so that the drive becomes owned by that group, and I make myself a member of that group. so that whenever the drive is mounted (eg automatically at boot) I automatically have access to it.

So yeah - useful stuff really
by the way - don't go off and actually try any of these examples unless you need to... and also unless you understand how those binary group permissions are worked out, stick to the chmod +/-x +/-r +/-w etc... I have heard some people go psycho about so called newbies using the binary method - personally I can't see any reason why they shouldn't...
 
  


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
permission denied as root Foosed Slackware 6 06-06-2005 12:38 AM
root gets permission denied Nightfrost Debian 22 11-21-2004 05:19 AM
wolf et needs to be logged in as root for sound (permission issue) dr_unpleasant Linux - Software 0 07-17-2004 02:26 PM
Even as root, Permission Denied RevX Linux - Software 7 04-24-2004 11:10 PM
root permission denied xmaspie Linux - Newbie 2 11-05-2003 01:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:25 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