?
Solved

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

Posted on 2009-04-08
3
Medium Priority
?
569 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 500 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

771 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