Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cant modify the kernel as user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Sun May 30, 2021 8:01 pm    Post subject: Cant modify the kernel as user Reply with quote

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
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Sun May 30, 2021 8:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Sun May 30, 2021 8:31 pm    Post subject: Reply with quote

eccerr0r wrote:
You need to use -R with chown as children do not automatically inherit permissions.


thanks, it fixed my problem
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54805
Location: 56N 3W

PostPosted: Sun May 30, 2021 9:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2202

PostPosted: Mon May 31, 2021 7:52 am    Post subject: Reply with quote

Or you can follow this wiki article.
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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