LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-17-2005, 12:10 PM   #1
ben_h_24
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Rep: Reputation: 15
Why don't I have permission


I don't have any permission to do anything but basically put files in my /home folder.... anyone know why?
 
Old 09-17-2005, 12:15 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
how are we supposed to help you with such amazingly small amounts of information? If you want to get help from LQ.org you need to provide a LOT more information. for example... what does "id -a" say? what does "ls -l /home/user/" say?
 
Old 09-17-2005, 12:27 PM   #3
recursv
Member
 
Registered: Oct 2004
Location: Cork, Ireland
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
You have no permissions to do anything becuase a user has no permissions. I'm assuming you are comfortable with the way in which MS windows XP assigns ownership to certain files and directories. Well, unix is a little more advanced. Every unix box has a administrator account (like the system account in windows) called 'root'. this is the super user account. It has permissions to do anything but becuase of that we don't use it
Simply put, if you want to install new software to your system them use the root account but otherwise, use your system with your user account. This provides security against the world at large and silly mistakes that you will make (we all make them all the time, seems we never learn from warning. you will understand in time. take that as my warning to you.)
If you want to read up on permissions try this site :
http://www.dartmouth.edu/~rc/help/faq/permissions.html
 
Old 09-17-2005, 12:29 PM   #4
ben_h_24
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
I'm sorry for the small amounts of info, I didn't even know those commands until you just said them. Plus I have to write it down by hand.

"id -a":

uid=501(ben
gid=501(ben)
groups=501(ben)

"ls -l /home/ben/"

total 36
drwxrwxr-x 2 ben ben Sep 16 16:28 autosave
drwx------ 2 ben ben Sep 17 07:59 Desktop
drwx------ 5 ben ben Sep 16 19:26 GNUstep
drwxr-xr-x 2 ben ben Sep 17 07:40 My Documents
drwxr-xr-x 2 ben ben Sep 16 18:39 My Icons
drwxr-xr-x 2 ben ben Sep 17 07:41 My Music
drwxr-xr-x 2 ben ben Sep 17 07:41 My Videos
drwx------ 4 ben ben Sep 16 17:48 tmp
 
Old 09-17-2005, 12:32 PM   #5
ben_h_24
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
recursv, that helped a bunch. The only reason I want to use the permission account is to install my drivers for my sound card, and change my directory for cdrom's from /mnt/hdd to /mnt/cdrom. every time I type in:

"/etc/fstab":

bash: /etc/fstab= Permission denied.

I just want sound and the cdrom to be in the /mnt/cdrom directory.

Last edited by ben_h_24; 09-17-2005 at 12:38 PM.
 
Old 09-17-2005, 12:32 PM   #6
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
That's normal. It's setup that way so normal users can't destroy the system. If you need to put files or edit files in system folders (anywhere but you home dir and /tmp basicly) you need super user permissions. If you have the password for root you can become super user by typing "su" and then the password in a terminal.

At least I think this is what you are talking about.

edit. Oh man, I'm so slow.
 
Old 09-17-2005, 12:35 PM   #7
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 86
Re: Why don't I have permission

Quote:
Originally posted by ben_h_24
I don't have any permission to do anything but basically put files in my /home folder.... anyone know why?
Because /home is where all your settings and files are supposed to go. You shouldn't have to have any need for modifying other folders unless you're installing software or changing system-wide config files--and those should need root privileges, which is why Linux has better security than Windows, generally.
 
Old 09-17-2005, 12:36 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 86
Quote:
Originally posted by ben_h_24
recursv, that helped a bunch. The only reason I want to use the permission account is to install my drivers for my sound card, and change my directory for cdrom's from /mnt/hdd to /mnt/cdrom. every time I type in:

"/etc/fstab":

bash: /etc/fstab= Permission denied.

I just want sound and the cdrom to be in the /mn/cdrom directory.
How to edit /etc/fstab varies, depending on what your distribution is. What distribution are you using?
 
Old 09-17-2005, 12:37 PM   #9
ben_h_24
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
mandrake 10.1
 
Old 09-17-2005, 12:38 PM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
hehe, that showed me up huh... thought he was saying he couldn't write to /home/user... doh! erm... yeah that's what root is for...
 
Old 09-17-2005, 12:41 PM   #11
ben_h_24
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
I didn't put a password on it when I installed? I told it no password because I'm the only user and I'm not connected to the internet on it.

I typed "su" and it changed to root.
 
Old 09-17-2005, 12:44 PM   #12
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 86
Quote:
Originally posted by ben_h_24
I typed "su" and it changed to root.
So now you can either
Code:
kwrite /etc/fstab
if you're using KDE or
Code:
gedit /etc/fstab
if you're using Gnome.
 
Old 09-17-2005, 01:03 PM   #13
ben_h_24
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
Alright, I typed in:

Code:
Kwrite /etc/fstab
it gave me:

Code:
Creating link /root/.kde/socket-localhost
Created link from "/root/.kde/socket-localhost" to "/tmp/ksocket-root"
/user/X11R6/bin/iceauth: creating new authority file /root/.ICEauthority
OPixmap: cannot create a XPixmap when no GUI is being used
OPixmap: cannot create a XPixmap when no GUI is being used
Creating link /root/.kde/tmp-localhost
Created link from "/root/.kde/tmp-localhost" to "/tmp/kde-root"
OPixmap: cannot create a XPixmap when no GUI is being used
OPixmap: cannot create a XPixmap when no GUI is being used
Kbuildsyoca running...
Creating link /root/.kde/cache-localhost
Created link from "/root/.kde/cach-localhost" to "/var/tmp/kdecache-root"
Invalid entry (missing"=") at /tmp/kde-root/kconf_update4zKUUb.tmp:1
then the fstab-kwrite window opened.
 
Old 09-17-2005, 01:04 PM   #14
recursv
Member
 
Registered: Oct 2004
Location: Cork, Ireland
Distribution: Slackware
Posts: 46

Rep: Reputation: 15
Firstly, i must say that there is a part of me screaming to read that you have no password on root but as you wish. If it is a stand alone machine i guess it is not a priority.

I noticed you said you were typing "/etc/fstab" . just to make sure, that is not an executable file. It just contains settings. typing "man fstab" in a console should provide as much information as required but you sound like you already have a handle on what you are doing so good luck.
 
Old 09-17-2005, 01:14 PM   #15
ben_h_24
LQ Newbie
 
Registered: Sep 2005
Posts: 25

Original Poster
Rep: Reputation: 15
woops, sorry, didn't see the last post

Last edited by ben_h_24; 09-17-2005 at 01:15 PM.
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
how to have permission? jesusphreak Linux - Newbie 4 01-23-2005 06:12 AM
Permission Infinite_Pizza Linux - General 5 04-20-2004 10:40 PM
Permission help again iLLuSionZ Linux - Newbie 12 11-23-2003 09:35 AM
permission help! beautifulmind Linux - General 1 07-24-2002 04:21 AM


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