LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-24-2010, 04:59 PM   #1
connorcan
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
postfix - master.cf editation


I have a problem with this file.

I want to edit this file but i can't edit this. It is in the /etc/postfix directory.

I promted;

cd ..
cd ..
cd etc
cd postfix
vi master.cf

then i see the file. but it's not editable. I see the bottom of the page "read only". when i promted chmod +w master.cf it's show me "Operation not permitted"

how can i edit this file?
 
Old 10-24-2010, 05:10 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
To edit a system configuration file like that you'll need to escalate to root privileges first. Most distributions let you do this with the `su` command (`su -` on redhat and `sudo su` on ubuntu).

Regards,

Alunduil
 
Old 10-24-2010, 05:55 PM   #3
connorcan
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alunduil View Post
To edit a system configuration file like that you'll need to escalate to root privileges first. Most distributions let you do this with the `su` command (`su -` on redhat and `sudo su` on ubuntu).

Regards,

Alunduil
dear Alunduil,

did you mean "su -master.cf"?

i'm beginner in linux. i don't know this commands.

i need this proccess.

1. change chmode master.cf (make editable)
2. edit the master.cf
3. save master.cf
 
Old 10-24-2010, 06:12 PM   #4
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
That's alright, I did mean simply: `su -`. After you issue that command the system will ask for your root password and then drop you into a shell with root privileges from which you can edit the file as you were outlining earlier.

Regards,

Alunduil
 
Old 10-25-2010, 04:06 AM   #5
connorcan
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
thank you.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] postfix status ;master is stopped annaabhi Linux - Newbie 4 08-02-2010 12:52 AM
confusing with postfix master.cf file nilhere Linux - Newbie 0 07-31-2009 04:31 AM
Postfix change return-path and writing own script for master.cf alitrix Linux - Server 7 07-25-2008 01:49 PM
postfix main.cf and master.cf configuration husseinalbazzar Linux - Newbie 10 03-19-2008 11:18 AM
Postfix/master: How to close Port 25? JZL240I-U Linux - Security 11 03-30-2007 02:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration