Solved

How to append a line in file /boot/loader.conf ?

Posted on 2009-04-08
3
541 Views
Last Modified: 2013-11-22
I tried doing this but I got permission denied, though I see proper permission in the file,
I tried giving 777 to file, still couldn't get the line appended to the file, is there any other
permission do I need to check?


bash-3.2$ sudo echo 'kern.ipc.maxpipekva="67108864"' >> /boot/loader.conf
bash: /boot/loader.conf: Permission denied
bash-3.2$ ls -l /boot/loader.conf
-rw-r--r--  1 root  wheel  1676 Apr  2 12:38 /boot/loader.conf
0
Comment
Question by:beer9
3 Comments
 
LVL 23

Accepted Solution

by:
Maciej S earned 125 total points
ID: 24095356
sudo sh -c "echo 'rn.ipc.maxpipekva=\"67108864\"' >> /boot/loader.conf"

Wouldn't it be easier to just su to root, and then run this echo command?
0
 
LVL 1

Expert Comment

by:null0bject
ID: 24113127
su
vi /boot/loader.conf
0
 

Author Closing Comment

by:beer9
ID: 31567925
Thanks :-)
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question