Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
permission denied - make.conf
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
hidethereal
n00b
n00b


Joined: 11 Oct 2007
Posts: 7

PostPosted: Sat Oct 13, 2007 4:33 pm    Post subject: permission denied - make.conf Reply with quote

Whenever I attempt to append the mirrorselect list to my make.conf file I am getting "permission denied" errors, whether I use sudo or not. I edited the file before with no problems. However, after making the change MAKEOPTS="-j2" and then saving, the file is only read only.

I'm using a live DVD and am following the manual verbatim. I haven't had any other problems up to this point.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Sat Oct 13, 2007 5:09 pm    Post subject: Reply with quote

Please run ls -l -a /etc/ ; echo >> /etc/make.conf and post the output. Be sure to use >>, rather than >. A single > truncates the file, while the >> will append to the file. Using echo without arguments echoes a blank line, which should be harmless. Echoing the blank line requires opening make.conf for writing, so we will get the exact text of the error you are encountering.
Back to top
View user's profile Send private message
hidethereal
n00b
n00b


Joined: 11 Oct 2007
Posts: 7

PostPosted: Sat Oct 13, 2007 7:03 pm    Post subject: Reply with quote

Here is the output:

Code:
gentoo@livecd ~ $ ls -l -a /etc/ ; echo >> /etc/make.conf
total 516
drwxr-xr-x 77 root root  3320 Oct 13 11:12 .
drwxrwxrwt 12 root root   380 Oct 13 11:17 ..
-rw-------  1 root root     0 Apr 20 01:21 .pwd.lock
-rw-r--r--  1 root root  4129 Apr 20 01:20 DIR_COLORS
drwxr-xr-x  3 root root    60 Apr 21 22:44 Wireless
drwxr-xr-x  6 root root   240 Oct 13 01:26 X11
drwxr-xr-x  3 root root    80 Apr 20 15:30 acpi
-rw-r--r--  1 root root    26 Oct 13 01:25 adjtime
-rw-r--r--  1 root root   410 Oct 13 01:26 amixer
drwxr-xr-x  7 root root   160 Apr 20 15:37 apm
-rw-r--r--  1 root root     0 Apr 21 22:46 asound.state
drwxr-xr-x  2 root root    60 Apr 20 01:18 bash
drwxr-xr-x  2 root root    60 Apr 20 15:49 bash_completion.d
-rw-r--r--  1 root root   248 Oct 13 02:00 blkid.tab
-rw-r--r--  1 root root   132 Oct 13 01:59 blkid.tab.old
drwxr-xr-x  2 root root    60 Apr 20 15:37 bonobo-activation
-rw-------  1 root root  1523 Apr 20 15:33 bpalogin.conf
-rw-r--r--  1 root root  4354 Apr 20 01:19 ca-certificates.conf
drwxr-xr-x  2 root root   820 Oct 13 01:26 conf.d
drwxr-xr-x  2 root root    60 Apr 20 15:37 cron.d
drwxr-xr-x  2 root root   120 Apr 20 15:33 cron.daily
-rw-r--r--  1 root root   220 Apr 20 15:37 cron.deny
drwxr-xr-x  2 root root    80 Apr 20 15:32 cron.hourly
drwxr-xr-x  2 root root   100 Apr 20 15:32 cron.monthly
drwxr-xr-x  2 root root   100 Apr 20 15:32 cron.weekly
-rw-r--r--  1 root root   616 Apr 20 15:37 crontab
-rw-r--r--  1 root root  1505 Apr 21 22:47 csh.env
drwxr-xr-x  5 root lp     200 Apr 20 15:42 cups
drwxr-xr-x  3 root root   100 Apr 20 15:28 dbus-1
drwxr-xr-x  2 root root    60 Apr 20 01:21 default
drwxr-xr-x  2 root root    40 Apr 20 15:48 desktop-profiles
drwxr-xr-x  2 root root    60 Apr 20 01:21 dev.d
-rw-r--r--  1 root root   895 Apr 20 15:21 dispatch-conf.conf
-rw-r--r--  1 root root   426 Apr 20 15:28 dmtab
drwxr-xr-x  2 root root   140 Apr 21 22:44 eciadsl
drwxr-xr-x  2 root root    80 Apr 20 15:32 eclean
drwxr-xr-x  4 root root   520 Oct 13 01:26 env.d
drwxr-xr-x  2 root root    60 Apr 20 15:36 esd
drwxr-xr-x  3 root root    60 Apr 19 23:55 eselect
-rw-r--r--  1 root root  1690 Apr 20 15:21 etc-update.conf
-rw-r--r--  1 root root  8175 Apr 20 15:37 evms.conf
-rw-r--r--  1 root root    66 Apr 20 15:37 exports
-rw-r--r--  1 root root  1246 Apr 20 01:19 fdprm
-rw-r--r--  1 root root   399 Apr 20 01:20 filesystems
drwxr-xr-x  4 root root   120 Apr 20 15:33 fonts
-rw-r--r--  1 root root   320 Apr 21 22:46 fstab
-rw-r--r--  1 root root  2139 Apr 20 01:21 gai.conf
lrwxrwxrwx  1 root root    17 Oct 13 01:27 gconf -> /usr/livecd/gconf
-rw-r--r--  1 root root    34 Apr 20 01:20 gentoo-release
drwxr-xr-x  3 root root    60 Apr 20 15:43 gnome-vfs-2.0
-rw-r--r--  1 root root 10793 Apr 20 15:28 gnome-vfs-mime-magic
drwxr-xr-x  2 root root   100 Apr 20 01:16 gpm
-rw-r--r--  1 root root   820 Apr 21 22:46 group
-rw-r--r--  1 root root   840 Apr 20 15:32 gssapi_mech.conf
drwxr-xr-x  2 root root  1000 Apr 20 15:34 gtk
drwxr-xr-x  2 root root   120 Apr 20 15:42 gtk-2.0
drwxr-xr-x  3 root root    60 Apr 20 15:37 hal
-rw-r--r--  1 root root   936 Apr 20 01:21 host.conf
-rw-r--r--  1 root root    41 Apr 21 22:46 hosts
-rw-r--r--  1 root root  1061 Apr 19 23:55 hosts.bck
drwxr-xr-x  4 root root    80 Apr 21 22:44 hotplug
-rw-r--r--  1 root root   144 Apr 20 15:37 idmapd.conf
drwxr-xr-x  3 root root  1440 Apr 21 22:46 init.d
-rw-r--r--  1 root root  2047 Oct 13 01:25 inittab
-rw-r--r--  1 root root  1645 Oct 13 01:25 inittab.old
-rw-r--r--  1 root root  1658 Apr 20 01:20 inputrc
drwxr-xr-x  2 root root   160 Apr 20 15:32 iproute2
-rw-r--r--  1 root root  5831 Apr 20 15:35 irssi.conf
-rw-r--r--  1 root root    30 Apr 20 01:20 issue
-rw-r--r--  1 root root   701 Apr 20 01:20 issue.logo
-rw-r--r--  1 root root   362 Apr 20 01:17 kdc.conf.example
drwxr-xr-x  2 root root    60 Apr 21 22:43 kernels
-rw-r--r--  1 root root   786 Apr 20 01:17 krb5.conf.example
-rw-r--r--  1 root root 76445 Oct 13 01:26 ld.so.cache
-rw-r--r--  1 root root   257 Oct 13 01:26 ld.so.conf
-r--r-----  1 root root   262 Apr 20 15:36 ldap.conf.sudo
drwxr-xr-x  2 root root    60 Apr 20 15:38 libgda
-rw-r--r--  1 root root  1722 Apr 20 15:35 lilo.conf.example
-rw-r--r--  1 root root   875 Apr 20 01:21 locale.gen
-rw-r--r--  1 root root   118 Apr 21 22:46 localtime
-rw-r--r--  1 root root  8869 Apr 20 01:21 login.defs
-rw-r--r--  1 root root   731 Apr 20 15:32 logrotate.conf
drwxr-xr-x  2 root root   100 Apr 20 15:39 logrotate.d
drwxr-xr-x  2 root root    80 Oct 13 01:25 lvm
drwxr-xr-x  3 root root    80 Apr 20 15:42 mail
-rw-r--r--  1 root root  2235 Apr 20 15:30 mailcap
-rw-r--r--  1 root root   586 Apr 21 22:46 make.conf
-rw-r--r--  1 root root 23202 Apr 20 15:21 make.conf.example
-rw-r--r--  1 root root  2963 Apr 20 15:21 make.globals
lrwxrwxrwx  1 root root    56 Oct 13 01:24 make.profile -> ../usr/portage/profiles/default-linux/x86/2007.0/desktop
-rw-r--r--  1 root root  4600 Apr 20 01:18 man.conf
-rw-r--r--  1 root root  2194 Apr 20 15:33 mdadm.conf
drwxr-xr-x  2 root root    60 Apr 20 15:35 minicom
-rw-r--r--  1 root root   330 Apr 20 01:17 mke2fs.conf
-rw-r--r--  1 root root  1914 Apr 21 22:46 modprobe.conf
drwxr-xr-x  2 root root   100 Apr 19 23:54 modules.autoload.d
-rw-r--r--  1 root root  5096 Apr 21 22:46 modules.conf
drwxr-xr-x  2 root root   220 Apr 21 22:45 modules.d
-rw-r--r--  1 root root  1265 Apr 21 22:46 motd
-rw-r--r--  1 root root   486 Oct 13 02:00 mtab
-rw-r--r--  1 root root  7719 Apr 20 01:20 nanorc
drwxr-xr-x  2 root root    60 Apr 20 15:33 netplug
drwxr-xr-x  2 root root    60 Apr 20 15:33 netplug.d
-rw-r--r--  1 root root   196 Apr 20 01:20 networks
-rw-r--r--  1 root root  1158 Apr 20 01:21 nscd.conf
-rw-r--r--  1 root root   508 Apr 20 01:21 nsswitch.conf
drwxr-xr-x  4 root root    80 Oct 13 01:26 opengl
drwxr-xr-x  3 root root   160 Apr 20 01:19 openldap
drwxr-xr-x  2 root root    60 Apr 19 23:54 opt
drwxr-xr-x  2 root root   900 Apr 20 15:47 pam.d
drwxr-xr-x  2 root root    80 Apr 20 15:40 pango
-rw-r--r--  1 root root     3 Apr 20 15:30 papersize
drwxr-xr-x  2 root root    80 Apr 20 15:37 partimaged
-rw-r--r--  1 root root  1639 Apr 21 22:46 passwd
drwxr-xr-x  2 root root    60 Apr 21 22:44 pcmcia
drwxr-xr-x  2 root root   140 Apr 20 15:35 penggy
drwxr-xr-x  2 root root    60 Apr 20 01:05 portage
drwxr-xr-x  5 root root   340 Apr 20 15:39 ppp
drwxr-xr-x  2 root root    40 Apr 20 15:39 pptp.d
-rw-r--r--  1 root root  2267 Apr 21 22:46 profile
-rw-r--r--  1 root root  1708 Oct 13 01:26 profile.csh
-rw-r--r--  1 root root  1708 Oct 13 01:26 profile.env
-rw-r--r--  1 root root  1623 Apr 20 01:20 protocols
-rw-r--r--  1 root root   134 Apr 20 01:16 pwdb.conf
drwxr-xr-x  2 root root    60 Apr 20 15:40 qt4
-rw-r--r--  1 root root  1606 Apr 21 22:46 rc.conf
-rw-r--r--  1 root root    91 Oct 13 11:12 resolv.conf
-rw-r--r--  1 root root    64 Oct 13 01:29 resolv.conf-eth0.sv
drwxr-xr-x  2 root root    80 Apr 20 15:40 revdep-rebuild
lrwxrwxrwx  1 root root    13 Oct 13 01:24 rmt -> /usr/sbin/rmt
-rw-r--r--  1 root root  1615 Apr 20 01:21 rpc
-rw-r--r--  1 root root   405 Apr 20 01:20 rsyncd.conf
drwxr-xr-x  6 root root   120 Apr 19 23:55 runlevels
-rw-r--r--  1 root root 10357 Apr 20 15:32 screenrc
-rw-r--r--  1 root root   103 Apr 20 15:39 scrollkeeper.conf
-rw-r--r--  1 root root   666 Apr 20 01:21 scsi_id.config
-rw-------  1 root root   253 Apr 20 01:21 securetty
drwxr-xr-x  3 root root   160 Apr 20 15:46 security
-rw-r--r--  1 root root 35842 Apr 20 01:20 services
-rw-------  1 root root   683 Oct 13 01:27 shadow
-rw-------  1 root root   671 Apr 21 22:46 shadow-
-rw-r--r--  1 root root   108 Apr 20 01:20 shells
drwxr-xr-x  3 root root   120 Apr 20 01:21 skel
drwxr-xr-x  2 root root   120 Apr 20 15:33 socks
drwxr-xr-x  3 root root    60 Apr 20 15:44 sound
lrwxrwxrwx  1 root root    22 Oct 13 01:24 spamassassin -> /etc/mail/spamassassin
drwxr-xr-x  3 root root   100 Apr 21 22:46 splash
drwxr-xr-x  2 root root   100 Apr 20 01:21 ssh
drwxr-xr-x  5 root root   120 Apr 20 01:19 ssl
drwxr-xr-x  2 root root   100 Apr 20 15:34 ssmtp
-r--r-----  1 root root  1610 Apr 21 22:46 sudoers
drwxr-xr-x  2 root root   160 Oct 13 01:26 sysconfig
-rw-r-----  1 root root  1459 Apr 20 01:20 sysctl.conf
drwxr-xr-x  2 root root    60 Apr 20 15:35 syslog-ng
drwxr-xr-x  9 root root   180 Apr 19 23:52 terminfo
drwxr-xr-x  3 root root    80 Apr 20 01:21 udev
-rw-r--r--  1 root root   576 Apr 20 15:33 updatedb.conf
drwxr-xr-x  2 root root    60 Apr 20 15:36 vim
drwxr-xr-x  2 root root    80 Apr 20 15:37 vpnc
drwxr-xr-x  2 root root    60 Apr 20 01:19 wget
-rw-r--r--  1 root root   345 Apr 20 15:35 whois.conf
-rw-r--r--  1 root root  1386 Apr 20 15:34 wodim.conf
drwxr-xr-x  2 root root    80 Apr 20 15:42 wpa_supplicant
drwxr-xr-x  3 root root    60 Apr 20 15:44 xdg
drwxr-xr-x  2 root root   140 Apr 20 15:39 xinetd.d
drwxr-xr-x  2 root root   100 Apr 20 15:37 xml
bash: /etc/make.conf: Permission denied
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21918

PostPosted: Sat Oct 13, 2007 7:21 pm    Post subject: Reply with quote

The file has correct permissions. Your prompt suggests that your shell is not running as root. Please run id and verify that it indicates you are root.
Back to top
View user's profile Send private message
hidethereal
n00b
n00b


Joined: 11 Oct 2007
Posts: 7

PostPosted: Sat Oct 13, 2007 7:29 pm    Post subject: Reply with quote

My id output:

Code:
gentoo@livecd ~ $ id
uid=1000(gentoo) gid=1000(gentoo) groups=10(wheel),18(audio),19(cdrom),35(games),85(usb),100(users),1000(gentoo)


The live cd defaulted to "gentoo" as the login. Is there a generic root password that runs the live cd?
Back to top
View user's profile Send private message
ShinyThings
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jul 2007
Posts: 89
Location: Ontario

PostPosted: Sat Oct 13, 2007 7:55 pm    Post subject: Reply with quote

Do "sudo su" to login as root. If you like, you can run passwd and set a password for the root on the livecd.
Back to top
View user's profile Send private message
hidethereal
n00b
n00b


Joined: 11 Oct 2007
Posts: 7

PostPosted: Sat Oct 13, 2007 8:08 pm    Post subject: Reply with quote

Thanks for the help! This solved my issue.

I didn't realize that I had to login to the live cd as root. I was under the impression that the gentoo default was root.
Back to top
View user's profile Send private message
davascript
l33t
l33t


Joined: 07 Apr 2004
Posts: 618
Location: Pennsylvania

PostPosted: Sat Oct 13, 2007 8:27 pm    Post subject: Reply with quote

you can just run su to switch to root. Using sudo would require you to setup a password for root
Code:
sudo passwd root

_________________
Registered Linux User # 451058
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 1480
Location: Germany

PostPosted: Mon Oct 15, 2007 7:45 am    Post subject: Reply with quote

you can see ther difference at the command promt:

this is the most common way which inditcates that you are logged in as root
Code:
user@host: #


this is the most common way which inditcates that you are logged in as a ordinary user
Code:
user@host: $

_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum