LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-01-2007, 04:22 PM   #1
sbhardy
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Rep: Reputation: 0
permission denied---for almost everythiing


Hi ,I am brand new to linux,so many will have to look over my lack of linux no-how. It seems like alomst everything I try to do from the terminal window cmd line ends up with a 'permission denied'.From the root terminal when I enter /etc/services I get 'permission denied'. If I enter /etc/samba/smb.conf I get 'permission denied' The full line is 'bash: /etc/samba/smb.conf: Permission denied'. I looked around here for a post with the answer,but most of the post were specific to one thing. I get 'permission denied' to almost everything. I have installed and am trying to learn Debian etch. I know when someone post the answer I am going to feel real stupid,but sometimes I have to feel real stupid in the learning process,, Thanks to anyone who can try to help me out here.
 
Old 08-01-2007, 04:40 PM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by sbhardy
Hi ,I am brand new to linux,so many will have to look over my lack of linux no-how. It seems like alomst everything I try to do from the terminal window cmd line ends up with a 'permission denied'.From the root terminal when I enter /etc/services I get 'permission denied'. If I enter /etc/samba/smb.conf I get 'permission denied' The full line is 'bash: /etc/samba/smb.conf: Permission denied'. I looked around here for a post with the answer,but most of the post were specific to one thing. I get 'permission denied' to almost everything. I have installed and am trying to learn Debian etch. I know when someone post the answer I am going to feel real stupid,but sometimes I have to feel real stupid in the learning process,, Thanks to anyone who can try to help me out here.
Try nano /etc/samba/smb.conf if you wish to edit the file or if just wanting to look at the contents less /etc/samba/smb.conf then use the up/down arrow keys to scroll and the q key to quit the viewing to get back to the terminal command line. You might want to Google search on the Rute Linux User Guide and do some reading to get some basic background information on using linux or if you want a local copy on your machine install the rutebook package and direct your browser to /usr/share/doc/rutebook/html/index.html.
 
Old 08-01-2007, 05:32 PM   #3
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Those permission denied errors are given because you don't have execute permissions for those files. UNIX uses permission bits instead of extensions to determine whether or not files are executable and to restrict which users can execute which files and which users cannot. Since those files are configuration files and not programs, the execute bits are all cleared, thus no user has permission to execute those files.

Last edited by zhangmaike; 08-01-2007 at 05:35 PM.
 
Old 08-01-2007, 05:43 PM   #4
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Quote:
Originally Posted by zhangmaike
Those permission denied errors are given because you don't have execute permissions for those files. UNIX uses permission bits instead of extensions to determine whether or not files are executable and to restrict which users can execute which files and which users cannot. Since those files are configuration files and not programs, the execute bits are all cleared, thus no user has permission to execute those files.
Well I think you are right, but as the OP mentioned that OP is new to linux I think HappyTux is right. In the sense that the user was just typing:
Code:
/etc/samba/smb.conf
instead of
Code:
less /etc/samba/smb.conf
i.e. no command was given along with the file path.
 
Old 08-01-2007, 05:45 PM   #5
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Both comments are distinct bits of information relevant to the question.

Everyone's right.
 
Old 08-01-2007, 09:11 PM   #6
sbhardy
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks a bunch to all of you!! I knew it would be something simple and I would feel stupid I am planning on quite a few weeks of head banging trying to learn this,but I intend to learn linux or die trying! Thank you again for all the help,you are great!_______ Just a note a few hours later-found and downloaded the Rute Guide. Learned how to install a Deb file along the way. Have RuteBook bookmarked in Epiphany,and will be visiting every day,, Thanks again to every one of you for the great help!

Last edited by sbhardy; 08-01-2007 at 11:12 PM.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
iptables forward everythiing ullaxe Linux - Networking 5 11-28-2006 05:53 AM
Permission Denied jamesvenning1 Linux - Newbie 4 06-05-2005 11:32 AM
permission denied Ryan450 Linux - Software 2 01-19-2005 05:25 PM

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

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