LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-29-2004, 10:26 PM   #1
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
Strange file access restrictions in kernel-headers directory


Hi all,

I installed the kernel headers using "apt-get install kernel-headers-2.4.25-1-386" so that i will be able to install the proprietary nvidia drivers. it seems however that the file attributes in that kernel headers directory structure are messed up. if i go to the "/usr/src/kernel-headers-2.4.25-1-386/include/linux" directory and type "ls kernel.h", i see that kernel.h is indeed a file in that directory. however, if i type "more kernel.h", i get a message that says "kernel.h: No such file or directory." note that i am doing all of this as root, so i should have the proper permissions, right? i also tried a "chmod 777 kernel.h" and got the error "chmod: failed to get attributes of 'kernel'h': No such file or directory." what is going on here, and what can i do to rectify it? thanks for any help in advance.

now, if i do "ls -l | cut -b 57-" i find that all of the files in that directory are soft links to themselves. for example, kernel.h is "kernel.h -> ../../../kernel-headers-2.4.25-1-386/include/linux/kernel.h." what's going on?

peace.
 
Old 04-30-2004, 07:20 AM   #2
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Imho this is a packaging error, the creator of the .deb had symlinks in kernel-headers to kernel-header-2.4.25-1-386 and packaged them without option to follow symlinks. Report this to package mantainer.
 
Old 04-30-2004, 07:26 AM   #3
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
I looked at the incriminated package... are you sure you installed kernel-headers-2.4.25-1 (without -i386) before? Was the donwload 5M or 300K? Maybe it's a dependancy problem.
 
Old 04-30-2004, 10:17 PM   #4
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Original Poster
Rep: Reputation: 30
yep ac1980, that was it. i needed to apt-get the headers without the -386 before hand. thanks for all the help.

peace.
 
  


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
Permissions, File, Directory access tHcnunz Linux - Newbie 3 03-26-2004 09:25 AM
samba and win 2k active directory restrictions kaasi Linux - General 0 11-06-2003 09:31 PM
Directory Restrictions aeruzcar Linux - Security 6 10-28-2003 09:09 PM
User and Group access restrictions? KendersPlace Linux - Security 1 08-20-2003 05:32 PM
File/directory access rights klmn1 Linux - Software 3 05-29-2003 01:14 AM


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