Permission error
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have tryed to build alfs in VM running Ubuntu 20.04 LTS and 22.04 LTS. I'm getting following Permission denied. I have just entered sudo authorisation and jhalfs and sources directories have been created and then... Are you happy with these optimization settings? yes/no (no): yes ------------------------------------------------------------------------------ [sudo] password for lfs: mkdir: cannot create directory '/lfs/jhalfs/logs': Permission denied <jhalfs> exit make: *** [Makefile:11: all] Error 1 lfs@draak:~/jhalfs$ lfs@draak:~/jhalfs$ ls -all /lfs total 16 drwxrwxrwx 4 lfs lfs 4096 Jun 14 08:47 . drwxr-xr-x 23 lfs lfs 4096 Jun 14 07:36 .. drwxr-xr-x 2 root root 4096 Jun 14 08:47 jhalfs drwxrwxrwt 2 root root 4096 Jun 14 08:47 sources lfs@draak:~/jhalfs$ The user lfs have as I believe all neccesary rights. See attached file for jhalfs configuration and somme additional info. The problem appears not to be limited to user lfs. I'm guesing that script at that point drops sudo authorisation and tries to make subdirectory in jhalfs as user lfs who have no rights to write in directory owned by root. Any suggestion wil be appreciated. Dragan -- http://lists.linuxfromscratch.org/sympa/info/alfs-discuss Unsubscribe: See the above information page
alfs
(text/plain, 3.1 KB)
BOOK </lfs/jhalfs/book-source>
CUSTOM_TOOLS <n>
INITSYS <sysv>
BLFS_TOOL <n>
LUSER <lfs>
LGROUP <lfs>
LHOME </home>
BUILDDIR </lfs>
CLEAN <n>
GETPKG <y>
SRC_ARCHIVE </sources/sources>
SERVER <http://ftp.osuosl.org>
RETRYSRCDOWNLOAD <y>
RETRYDOWNLOADCNT <2>
DOWNLOADTIMEOUT <30>
RUNMAKE <n>
TEST <1>
BOMB_TEST <n>
STRIP <y>
NCURSES5 <n>
DEL_LA_FILES <y>
FSTAB <>
CONFIG </sources/script/.config>
TIMEZONE <Amsterdam>
PAGE <A4>
LANG <en_US.UTF-8>
INSTALL_LOG <y>
PKGMNGT <n>
FULL_LOCALE <y>
WRAP_INSTALL <n>
HOSTNAME <draaconian>
INTERFACE <eth0>
IP_ADDR <10.0.2.9>
GATEWAY <10.0.2.2>
PREFIX <24>
BROADCAST <10.0.2.255>
DOMAIN <local>
DNS1 <10.0.2.3>
DNS2 <8.8.8.8>
FONT <lat0-16>
KEYMAP <us>
LOCAL <n>
LOG_LEVEL <4>
COMPARE <n>
OPTIMIZE <1>
N_PARALLEL <16>
SAVE_CH5 <n>
REPORT <y>
REBUILD_MAKEFILE <n>
*** config parameters look good ***
Are you happy with these settings? yes/no (no): yes
------------------------------------------------------------------------------
Loading optimization module...OK
Loading optimization config...OK
WARNING:
The use of build optimizations may be dangerous.
You should know what you are doing and be sure that the
optimization settings listed below are what you want.
If there are build issues or the system doesn't work as
expected, please rebuild without optimizations before
asking for support.
MAKEFLAGS: <-j16>
BLACK_LIST: <>
DEF_OPT_MODE: <noOpt>
CFLAGS: <unset>
CXXFLAGS: <unset>
LDFLAGS: <unset>
OTHER_CFLAGS: <unset>
OTHER_CXXFLAGS: <unset>
OTHER_LDFLAGS: <unset>
Overridden packages:
gcc noOpt
grub noOpt
Are you happy with these optimization settings? yes/no (no): yes
------------------------------------------------------------------------------
[sudo] password for lfs:
mkdir: cannot create directory '/lfs/jhalfs/logs': Permission denied
<jhalfs> exit
make: *** [Makefile:11: all] Error 1
lfs@draak:~/jhalfs$
lfs@draak-VirtualBox:/lfs$ ls -all
total 16
drwxrwxrwx 4 lfs lfs 4096 Jun 14 12:50 .
drwxr-xr-x 22 root root 4096 Jun 14 12:48 ..
drwxr-xr-x 2 root root 4096 Jun 14 12:50 jhalfs
drwxrwxrwt 2 root root 4096 Jun 14 12:50 sources
lfs@draak-VirtualBox:/lfs$ sudo fdisk -l |grep sd
Disk /dev/sda: 32 GiB, 34359738368 bytes, 67108864 sectors
/dev/sda1 * 2048 1050623 1048576 512M b W95 FAT32
/dev/sda2 1052670 67106815 66054146 31.5G 5 Extended
/dev/sda5 1052672 67106815 66054144 31.5G 83 Linux
Disk /dev/sdb: 8 GiB, 8589934592 bytes, 16777216 sectors
Disk /dev/sdc: 32 GiB, 34359738368 bytes, 67108864 sectors
/dev/sdc1 4096 67104767 67100672 32G 83 Linux
lfs@draak-VirtualBox:/lfs$
lfs@draak-VirtualBox:~/jhalfs$ printenv
SRC_ARCHIVE=/sources/sources
PWD=/home/lfs/jhalfs
HOME=/home/lfs
MAKEFLAGS=-j16
TERM=xterm-256color
SHLVL=1
PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$
LFS_TGT=x86_64-lfs-linux-gnu
LC_ALL=POSIX
SOURCES=/lfs/sources/sources
LFS=/lfs
CONFIG_SITE=/lfs/usr/share/config.site
PATH=/lfs/tools/bin:/usr/bin
BUILDDIR=/lfs
OLDPWD=/lfs
_=/usr/bin/printenv
lfs@draak-VirtualBox:~/jhalfs$
lfs@draak-VirtualBox:/lfs$ groups
lfs sudo vboxsf
lfs@draak-VirtualBox:/lfs$