Solved

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

Posted on 2009-04-08
3
563 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

688 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