Arabezar

Modifying /etc/* configuration files

Recommended Posts

Hi guys,

Just trying to modify some configuration file /etc/*

But I cannot save changes in "nano" (through PuTTY; logged in as admin).

Changing file permissions from rw-r--r-- (0644) to rw-rw-rw- (0666) also failed.

What am I doing wrong?

What should I do first in order to change file permissions?

 

P.S.

IMO same issue with permissions I have when installing "mc"... when starting "mc" I get a system message: "Cannot create /var/services/homes/admin/.config/mc directory"

 

Edited by Arabezar

Share this post


Link to post
Share on other sites

Try with root permission

 

sudo -i

 

Then give your normal admin password 

 

Since 6.x there is no root account anymore

  • Like 1

Share this post


Link to post
Share on other sites
7 minutes ago, nevusZ said:

sudo -i

Then give your normal admin password

Yep. It works! Thanks a lot!

Share this post


Link to post
Share on other sites

And how to fix the issue with "mc"?

Just to create the folder /var/services/homes/admin/.config/mc with appropriate permissions?

"mc" was installed from the SynoCommunity MC package (it cannot be started BTW).

Share this post


Link to post
Share on other sites
7 hours ago, Arabezar said:

Just trying to modify some configuration file /etc/*

But I cannot save changes in "nano" (through PuTTY; logged in as admin).

Changing file permissions from rw-r--r-- (0644) to rw-rw-rw- (0666) also failed.

 

Not sure why you thought that changing the permission of system files was a good idea. If you can't edit those files it is not because the permissions are wrong it's because you are using the wrong account which does not have the necessary privileges. 

 

6 hours ago, nevusZ said:

Try with root permission

 

sudo -i

 

Then give your normal admin password 

 

Since 6.x there is no root account anymore

 

Yes that's the way to go. However I need to correct something. The root account DOES exist. It is simply secured in a way that it cannot be accessed directly anymore that's all.

 

7 hours ago, Arabezar said:

IMO same issue with permissions I have when installing "mc"... when starting "mc" I get a system message: "Cannot create /var/services/homes/admin/.config/mc directory"

 

You are using the admin account. You need to use the root account.

https://xpenology.com/forum/topic/1697-xpenoboot-52-56445-rus/?do=findComment&comment=21976

http://www.nas-forum.com/forum/topic/32391-midnight-commander-synocommunity/

http://www.synology-forum.ru/index.php?showtopic=38&st=540

 

  • Like 1

Share this post


Link to post
Share on other sites
6 minutes ago, Polanskiman said:

Not sure why you thought that changing the permission of system files was a good idea. If you can't edit those files it is not because the permissions are wrong it's because you are using the wrong account which does not have the necessary privileges.

You're right. And if there's another way to configure ssmtp (/etc/ssmtp/*), I would do it. Synology GUI doesn't provide the way.

 

6 minutes ago, Polanskiman said:

The root account DOES exist.

I know it. I hope nevusZ also knows. Thanks for the clarification.

 

19 minutes ago, Polanskiman said:

You are using the admin account. You need to use the root account.

First 2 links just confirm the issue, last one is a bit messy but there is a lot of information there, thanks.

Of course I can install MC another way but I wanted to install it from Synology (even not official) repository.

Share this post


Link to post
Share on other sites

yes of I course i know - a linux system without root is like a bike without wheel

but you can't login as root per default since 6.x

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now