Skip to main content

Thread: /etc/profile & sudo -i


hello,

(first of all, i'm sorry poor english)
'am using linux server

add line "echo 250 32000 32 200 > /proc/sys/kernel/sem" /etc/profile file, avoid write line @ each boot of pc.( it's modify max number of arrays semaphore)

but, write command, need in "sudo -i" ( not sudo).

have tried add @ end of profile file theses lines:

sudo -i
(at point, have write password)
echo 250 32000 32 200 > /proc/sys/kernel/sem
exit(to exit sudo -i)

when linux booting, it's freeze after theses lines. have ctrl-c on or 2 times.
@ point, terminal writes: ~bash: /proc/sys/kernel/sem : permission denied.

read /kernel/sem file, value of "max number of arrays" modified.
has ctrl-c, i'am not connected, have write login , passord session.

have idea modify profile file, add sudo -i command,
thank much
guitou

hello , welcome forums.

may better add /etc/rc.local file. file executed @ boot root privleges there no need use sudo. make sure append line above "exit 0" line executed. file this:
code:
...  echo "250 32000 32 200" > /proc/sys/kernel/sem  exit 0


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] /etc/profile & sudo -i


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account