Solved

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

Posted on 2009-04-08
3
531 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

707 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now