View previous topic :: View next topic |
Author |
Message |
desatan n00b
Joined: 20 Aug 2005 Posts: 72
|
Posted: Sat Apr 05, 2008 12:11 pm Post subject: I want to store distfiles on other parition |
|
|
mount -o bind /root/d /usr/portage/distfiles
or ln -s /root/d /usr/portage/distfiles
or set DISTDIR to /usr/portage/distfiles
whenever user root or user portage owns /root/d ,the same error happens:
Code: |
#emerge -f something
Calculating dependencies... done!
>>> Emerging (1 of 1) something to /
>>> Downloading 'http://61.135.158.199/distfiles/something'
Initializing download: http://61.135.158.199/distfiles/something
File size: 139266 bytes
Opening output file /root/d/something
Error opening local file |
/root/d:
drwxrwsr-x 3 root portage 72 04-04 22:49 d
or drwxrwsr-x 3 portage portage 72 04-04 22:49 d
My /etc/fstab:
Code: | /dev/hda1 /boot reiserfs noauto,noatime 1 2
/dev/hda5 / reiserfs noatime 0 1
/dev/hda8 /home reiserfs noatime 1 2
/dev/hda7 /root reiserfs noatime 1 2
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro,user 0 0
/dev/hda6 none swap sw 0 0
#/root/d /usr/portage/distfiles auto bind 0 0
none /tmp tmpfs defaults 0 0
#none /var/tmp/portage tmpfs defaults 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
|
any idea? |
|
Back to top |
|
|
a.b. Apprentice
Joined: 23 Mar 2008 Posts: 218 Location: Anus Mundi, Germany
|
Posted: Sat Apr 05, 2008 12:20 pm Post subject: |
|
|
Are you sure the partition is writable? Try e.g. |
|
Back to top |
|
|
desatan n00b
Joined: 20 Aug 2005 Posts: 72
|
Posted: Sat Apr 05, 2008 12:34 pm Post subject: |
|
|
a.b. wrote: | Are you sure the partition is writable? Try e.g. |
yes. It's writable. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Sat Apr 05, 2008 2:13 pm Post subject: |
|
|
If the partition is writeable by root, then whichever user is emerging stuff must not be able
to write to it. Are you running parts of portage suid to portage? I generally emerge stuff
as root, since while the build process can be done by a user, the install process generally
needs root permissions.
Will |
|
Back to top |
|
|
desatan n00b
Joined: 20 Aug 2005 Posts: 72
|
Posted: Sat Apr 05, 2008 11:39 pm Post subject: |
|
|
thanks cwr , I set suid to axel , and it's solved.
how to set only portage calling axel as root? |
|
Back to top |
|
|
|