LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   postfix - master.cf editation (https://www.linuxquestions.org/questions/linux-newbie-8/postfix-master-cf-editation-840199/)

connorcan 10-24-2010 03:59 PM

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?

alunduil 10-24-2010 04:10 PM

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

connorcan 10-24-2010 04:55 PM

Quote:

Originally Posted by alunduil (Post 4137945)
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

alunduil 10-24-2010 05:12 PM

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

connorcan 10-25-2010 03:06 AM

thank you.


All times are GMT -5. The time now is 11:48 PM.