View previous topic :: View next topic |
Author |
Message |
George528 Tux's lil' helper
Joined: 27 May 2021 Posts: 97
|
Posted: Sun May 30, 2021 8:01 pm Post subject: Cant modify the kernel as user |
|
|
At first, when i make menuconfig, it gave me this error:
Code: | make menuconfig
mkdir: cannot create directory ‘.tmp_5024’: Permission denied
mkdir: cannot create directory ‘.tmp_5026’: Permission denied
mkdir: cannot create directory ‘.tmp_5028’: Permission denied
mkdir: cannot create directory ‘.tmp_5030’: Permission denied
mkdir: cannot create directory ‘.tmp_5032’: Permission denied
mkdir: cannot create directory ‘.tmp_5034’: Permission denied
mkdir: cannot create directory ‘.tmp_5036’: Permission denied
mkdir: cannot create directory ‘.tmp_5038’: Permission denied
mkdir: cannot create directory ‘.tmp_5040’: Permission denied
mkdir: cannot create directory ‘.tmp_5042’: Permission denied
mkdir: cannot create directory ‘.tmp_5044’: Permission denied
mkdir: cannot create directory ‘.tmp_5046’: Permission denied
mkdir: cannot create directory ‘.tmp_5048’: Permission denied
/bin/sh: line 1: scripts/kconfig/.mconf-cfg.tmp: Permission denied
make[1]: *** [scripts/kconfig/Makefile:214: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:603: menuconfig] Error 2 |
then i changed the ownership of /usr/src/linux to user:
Code: | chown george:george /usr/src/linux |
but i still get an error when doing menuconfig:
Code: | george@satellite /usr/src/linux $ make menuconfig
/bin/sh: line 1: scripts/kconfig/.mconf-cfg.tmp: Permission denied
make[1]: *** [scripts/kconfig/Makefile:214: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:603: menuconfig] Error 2
george@satellite /usr/src/linux $ |
i tried to do chmod 777 /usr/src/linux but it doesnt work. Help? |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9882 Location: almost Mile High in the USA
|
Posted: Sun May 30, 2021 8:27 pm Post subject: |
|
|
You need to use -R with chown as children do not automatically inherit permissions. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
George528 Tux's lil' helper
Joined: 27 May 2021 Posts: 97
|
Posted: Sun May 30, 2021 8:31 pm Post subject: |
|
|
eccerr0r wrote: | You need to use -R with chown as children do not automatically inherit permissions. |
thanks, it fixed my problem |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54805 Location: 56N 3W
|
Posted: Sun May 30, 2021 9:25 pm Post subject: |
|
|
George528,
You can also use -O option so the kernel sources stay read only to users and -O points to some user rw space.
The config file and build products go there. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Goverp Advocate
Joined: 07 Mar 2007 Posts: 2202
|
Posted: Mon May 31, 2021 7:52 am Post subject: |
|
|
Or you can follow this wiki article. _________________ Greybeard |
|
Back to top |
|
|
|