Arabezar Posted October 8, 2017 Share #1 Posted October 8, 2017 (edited) 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 October 8, 2017 by Arabezar Quote Link to comment Share on other sites More sharing options...
nevusZ Posted October 8, 2017 Share #2 Posted October 8, 2017 Try with root permission sudo -i Then give your normal admin password Since 6.x there is no root account anymore 1 Quote Link to comment Share on other sites More sharing options...
Arabezar Posted October 8, 2017 Author Share #3 Posted October 8, 2017 7 minutes ago, nevusZ said: sudo -i Then give your normal admin password Yep. It works! Thanks a lot! Quote Link to comment Share on other sites More sharing options...
Arabezar Posted October 8, 2017 Author Share #4 Posted October 8, 2017 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). Quote Link to comment Share on other sites More sharing options...
nevusZ Posted October 8, 2017 Share #5 Posted October 8, 2017 Sry i dont know Maybe try install it from entware ng Quote Link to comment Share on other sites More sharing options...
Polanskiman Posted October 9, 2017 Share #6 Posted October 9, 2017 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 1 Quote Link to comment Share on other sites More sharing options...
Arabezar Posted October 9, 2017 Author Share #7 Posted October 9, 2017 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. Quote Link to comment Share on other sites More sharing options...
nevusZ Posted October 9, 2017 Share #8 Posted October 9, 2017 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.