LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-16-2006, 01:24 AM   #1
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Rep: Reputation: 15
Exclamation permission issues in terminal while logged in as root


i am trying to veiw FStab and also configure Samba but when i try to do this through the terminal while in the GUI i keep getting a permission denied error. I am using Debian version 3.1 (aka sarge)

i am trying to config samba for NFS purposes.


thanks in advance.

tekyd
 
Old 02-16-2006, 07:24 AM   #2
ironmike
LQ Newbie
 
Registered: Feb 2004
Location: Virginia, USA
Distribution: RedHat 4.5
Posts: 6

Rep: Reputation: 0
Thumbs up

Most likely /etc/fstab does not have read permissions set for 'other' or 'group' You need to type 'su' in the terminal window, and then reply with the root password. You'll then be able to read /etc/fstab. Don't change it unless you really know what you are doing...
 
Old 02-16-2006, 09:01 AM   #3
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
the prob is that when i am trying to veiw it i am loged in as root. so why does it need that?
 
Old 02-16-2006, 09:51 AM   #4
ironmike
LQ Newbie
 
Registered: Feb 2004
Location: Virginia, USA
Distribution: RedHat 4.5
Posts: 6

Rep: Reputation: 0
You've gotta post the exact text of the error message that you are seeing regarding permissions. Also, enter this command after login as root: cd /etc and then post the output of this command ls -l fstab
 
Old 02-17-2006, 01:36 AM   #5
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
"bash: /etc/fstab: permission denied" is the error
after entering cd /etc then ls -l fstab i got "-rw-r--r-- 1 root root 460 2006 -02-12 09:38 fstab"
what does all this mean exactly i can kindof understand the rw- stuff but beond that im not sure.
 
Old 02-17-2006, 08:30 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,248
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
That's odd.. when you issue the command whoami in that terminal does it respond with root ?

I'm a bit confused because the file you are trying to 'view' is readable by anyone..
I can view fstab as a non-root user by using cat /etc/fstab or more /etc/fstab what command are you using to try and view this file..

Last edited by farslayer; 02-17-2006 at 08:31 AM.
 
Old 03-03-2006, 10:39 PM   #7
tekyd
LQ Newbie
 
Registered: Mar 2005
Location: CA
Distribution: Red Hat 9 Ubuntu 6.06 (Dapper Drake)
Posts: 26

Original Poster
Rep: Reputation: 15
after entering whoami it replys with root.
 
  


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
how to install KDE using terminal logged in as root cylaxzene Linux - Newbie 2 01-09-2005 02:30 PM
Help Needed for Root Password/permission issues. Ebenonce General 3 08-19-2004 05:57 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
Permission Denied when logged in as root? mackdady Linux - Software 6 03-30-2004 04:31 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM

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

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