Can not edit file symlinked (Permission denied)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I started using dotfiles to sync everything I need to github. But I got some problem when symblink config files from dotfiles/ to ~/



Examples:



$ rm ~/.config/termite/config
$ ln -s ~/dotfiles/termite/config - > ~/.config/termite/config



$ ll ~/dotfiles/termite

total 4.0K
-rw-r--r-- 1 hieuc users 1.9K Nov 18 15:19 config



It won't let me edit, and it cannot be read by termite



~/.config/termite/config [Permission Denied]


Does anyone know how to fix it?










share|improve this question























  • Are you trying to execute ~/dotfiles/termite/config using the symlink?
    – Nasir Riley
    Nov 18 at 21:43










  • Yep, because I want to organize all of the config file in dotfiles/ and keep it update easier.
    – HieuC
    Nov 18 at 21:48










  • Is the file itself executable? All the output of ll ~/dotfiles/termite/config to your question.
    – Nasir Riley
    Nov 18 at 21:50










  • Note: the command ln -s ~/dotfiles/termite/config - > ~/.config/termite/config does something different than what you expected.
    – Ipor Sircer
    Nov 18 at 21:53










  • I didn't notice earlier but in addition to what Ipor said, if you just want a symlink, the correct command is ln -s ~/dotfiles/termite/config ~/.config/termite/config.
    – Nasir Riley
    Nov 18 at 21:58














up vote
0
down vote

favorite












I started using dotfiles to sync everything I need to github. But I got some problem when symblink config files from dotfiles/ to ~/



Examples:



$ rm ~/.config/termite/config
$ ln -s ~/dotfiles/termite/config - > ~/.config/termite/config



$ ll ~/dotfiles/termite

total 4.0K
-rw-r--r-- 1 hieuc users 1.9K Nov 18 15:19 config



It won't let me edit, and it cannot be read by termite



~/.config/termite/config [Permission Denied]


Does anyone know how to fix it?










share|improve this question























  • Are you trying to execute ~/dotfiles/termite/config using the symlink?
    – Nasir Riley
    Nov 18 at 21:43










  • Yep, because I want to organize all of the config file in dotfiles/ and keep it update easier.
    – HieuC
    Nov 18 at 21:48










  • Is the file itself executable? All the output of ll ~/dotfiles/termite/config to your question.
    – Nasir Riley
    Nov 18 at 21:50










  • Note: the command ln -s ~/dotfiles/termite/config - > ~/.config/termite/config does something different than what you expected.
    – Ipor Sircer
    Nov 18 at 21:53










  • I didn't notice earlier but in addition to what Ipor said, if you just want a symlink, the correct command is ln -s ~/dotfiles/termite/config ~/.config/termite/config.
    – Nasir Riley
    Nov 18 at 21:58












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I started using dotfiles to sync everything I need to github. But I got some problem when symblink config files from dotfiles/ to ~/



Examples:



$ rm ~/.config/termite/config
$ ln -s ~/dotfiles/termite/config - > ~/.config/termite/config



$ ll ~/dotfiles/termite

total 4.0K
-rw-r--r-- 1 hieuc users 1.9K Nov 18 15:19 config



It won't let me edit, and it cannot be read by termite



~/.config/termite/config [Permission Denied]


Does anyone know how to fix it?










share|improve this question















I started using dotfiles to sync everything I need to github. But I got some problem when symblink config files from dotfiles/ to ~/



Examples:



$ rm ~/.config/termite/config
$ ln -s ~/dotfiles/termite/config - > ~/.config/termite/config



$ ll ~/dotfiles/termite

total 4.0K
-rw-r--r-- 1 hieuc users 1.9K Nov 18 15:19 config



It won't let me edit, and it cannot be read by termite



~/.config/termite/config [Permission Denied]


Does anyone know how to fix it?







dot-files






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 18 at 22:06

























asked Nov 18 at 21:34









HieuC

83




83











  • Are you trying to execute ~/dotfiles/termite/config using the symlink?
    – Nasir Riley
    Nov 18 at 21:43










  • Yep, because I want to organize all of the config file in dotfiles/ and keep it update easier.
    – HieuC
    Nov 18 at 21:48










  • Is the file itself executable? All the output of ll ~/dotfiles/termite/config to your question.
    – Nasir Riley
    Nov 18 at 21:50










  • Note: the command ln -s ~/dotfiles/termite/config - > ~/.config/termite/config does something different than what you expected.
    – Ipor Sircer
    Nov 18 at 21:53










  • I didn't notice earlier but in addition to what Ipor said, if you just want a symlink, the correct command is ln -s ~/dotfiles/termite/config ~/.config/termite/config.
    – Nasir Riley
    Nov 18 at 21:58
















  • Are you trying to execute ~/dotfiles/termite/config using the symlink?
    – Nasir Riley
    Nov 18 at 21:43










  • Yep, because I want to organize all of the config file in dotfiles/ and keep it update easier.
    – HieuC
    Nov 18 at 21:48










  • Is the file itself executable? All the output of ll ~/dotfiles/termite/config to your question.
    – Nasir Riley
    Nov 18 at 21:50










  • Note: the command ln -s ~/dotfiles/termite/config - > ~/.config/termite/config does something different than what you expected.
    – Ipor Sircer
    Nov 18 at 21:53










  • I didn't notice earlier but in addition to what Ipor said, if you just want a symlink, the correct command is ln -s ~/dotfiles/termite/config ~/.config/termite/config.
    – Nasir Riley
    Nov 18 at 21:58















Are you trying to execute ~/dotfiles/termite/config using the symlink?
– Nasir Riley
Nov 18 at 21:43




Are you trying to execute ~/dotfiles/termite/config using the symlink?
– Nasir Riley
Nov 18 at 21:43












Yep, because I want to organize all of the config file in dotfiles/ and keep it update easier.
– HieuC
Nov 18 at 21:48




Yep, because I want to organize all of the config file in dotfiles/ and keep it update easier.
– HieuC
Nov 18 at 21:48












Is the file itself executable? All the output of ll ~/dotfiles/termite/config to your question.
– Nasir Riley
Nov 18 at 21:50




Is the file itself executable? All the output of ll ~/dotfiles/termite/config to your question.
– Nasir Riley
Nov 18 at 21:50












Note: the command ln -s ~/dotfiles/termite/config - > ~/.config/termite/config does something different than what you expected.
– Ipor Sircer
Nov 18 at 21:53




Note: the command ln -s ~/dotfiles/termite/config - > ~/.config/termite/config does something different than what you expected.
– Ipor Sircer
Nov 18 at 21:53












I didn't notice earlier but in addition to what Ipor said, if you just want a symlink, the correct command is ln -s ~/dotfiles/termite/config ~/.config/termite/config.
– Nasir Riley
Nov 18 at 21:58




I didn't notice earlier but in addition to what Ipor said, if you just want a symlink, the correct command is ln -s ~/dotfiles/termite/config ~/.config/termite/config.
– Nasir Riley
Nov 18 at 21:58










1 Answer
1






active

oldest

votes

















up vote
0
down vote













The file is readable by everyone as is denoted by the r bit for user, group, and others.



Your file is not executable as is denoted by the lack of x for everyone. That is what is giving you the [Permission Denied] error.



Make the file executable with this:



chmod +x ~/.config/termite/config


That will add execute permissions and the output off ll ~/.config/termite/config will look like this:



-rw-r-xr-x 1 hieuc users 1.9K Nov 18 15:19 config


You will then be able to execute the file with no issues either with this command:



~/.config/termite/config


Or by cd'ing into the directory that contains the file and then executing it:



cd ~/.config/termite/config

./config





share|improve this answer




















  • Thank for your helping but I think I know what is my problem. Because when I symblink I am already in ~/dotfiles/termite/ and use ln -s config ~/.config/termite/config and when I try to edit or read it'll come up with error Too many levels of symbolic links. After that I tried to symblink full path like this $pwd (~/dotfiles/termite/) $ ln -s ~/dotfiles/termite/config ~/.config/termite/config And it is editable right now. Again, thank for your time to helping me.
    – HieuC
    Nov 18 at 22:36










Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482613%2fcan-not-edit-file-symlinked-permission-denied%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
0
down vote













The file is readable by everyone as is denoted by the r bit for user, group, and others.



Your file is not executable as is denoted by the lack of x for everyone. That is what is giving you the [Permission Denied] error.



Make the file executable with this:



chmod +x ~/.config/termite/config


That will add execute permissions and the output off ll ~/.config/termite/config will look like this:



-rw-r-xr-x 1 hieuc users 1.9K Nov 18 15:19 config


You will then be able to execute the file with no issues either with this command:



~/.config/termite/config


Or by cd'ing into the directory that contains the file and then executing it:



cd ~/.config/termite/config

./config





share|improve this answer




















  • Thank for your helping but I think I know what is my problem. Because when I symblink I am already in ~/dotfiles/termite/ and use ln -s config ~/.config/termite/config and when I try to edit or read it'll come up with error Too many levels of symbolic links. After that I tried to symblink full path like this $pwd (~/dotfiles/termite/) $ ln -s ~/dotfiles/termite/config ~/.config/termite/config And it is editable right now. Again, thank for your time to helping me.
    – HieuC
    Nov 18 at 22:36














up vote
0
down vote













The file is readable by everyone as is denoted by the r bit for user, group, and others.



Your file is not executable as is denoted by the lack of x for everyone. That is what is giving you the [Permission Denied] error.



Make the file executable with this:



chmod +x ~/.config/termite/config


That will add execute permissions and the output off ll ~/.config/termite/config will look like this:



-rw-r-xr-x 1 hieuc users 1.9K Nov 18 15:19 config


You will then be able to execute the file with no issues either with this command:



~/.config/termite/config


Or by cd'ing into the directory that contains the file and then executing it:



cd ~/.config/termite/config

./config





share|improve this answer




















  • Thank for your helping but I think I know what is my problem. Because when I symblink I am already in ~/dotfiles/termite/ and use ln -s config ~/.config/termite/config and when I try to edit or read it'll come up with error Too many levels of symbolic links. After that I tried to symblink full path like this $pwd (~/dotfiles/termite/) $ ln -s ~/dotfiles/termite/config ~/.config/termite/config And it is editable right now. Again, thank for your time to helping me.
    – HieuC
    Nov 18 at 22:36












up vote
0
down vote










up vote
0
down vote









The file is readable by everyone as is denoted by the r bit for user, group, and others.



Your file is not executable as is denoted by the lack of x for everyone. That is what is giving you the [Permission Denied] error.



Make the file executable with this:



chmod +x ~/.config/termite/config


That will add execute permissions and the output off ll ~/.config/termite/config will look like this:



-rw-r-xr-x 1 hieuc users 1.9K Nov 18 15:19 config


You will then be able to execute the file with no issues either with this command:



~/.config/termite/config


Or by cd'ing into the directory that contains the file and then executing it:



cd ~/.config/termite/config

./config





share|improve this answer












The file is readable by everyone as is denoted by the r bit for user, group, and others.



Your file is not executable as is denoted by the lack of x for everyone. That is what is giving you the [Permission Denied] error.



Make the file executable with this:



chmod +x ~/.config/termite/config


That will add execute permissions and the output off ll ~/.config/termite/config will look like this:



-rw-r-xr-x 1 hieuc users 1.9K Nov 18 15:19 config


You will then be able to execute the file with no issues either with this command:



~/.config/termite/config


Or by cd'ing into the directory that contains the file and then executing it:



cd ~/.config/termite/config

./config






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 18 at 22:24









Nasir Riley

2,176239




2,176239











  • Thank for your helping but I think I know what is my problem. Because when I symblink I am already in ~/dotfiles/termite/ and use ln -s config ~/.config/termite/config and when I try to edit or read it'll come up with error Too many levels of symbolic links. After that I tried to symblink full path like this $pwd (~/dotfiles/termite/) $ ln -s ~/dotfiles/termite/config ~/.config/termite/config And it is editable right now. Again, thank for your time to helping me.
    – HieuC
    Nov 18 at 22:36
















  • Thank for your helping but I think I know what is my problem. Because when I symblink I am already in ~/dotfiles/termite/ and use ln -s config ~/.config/termite/config and when I try to edit or read it'll come up with error Too many levels of symbolic links. After that I tried to symblink full path like this $pwd (~/dotfiles/termite/) $ ln -s ~/dotfiles/termite/config ~/.config/termite/config And it is editable right now. Again, thank for your time to helping me.
    – HieuC
    Nov 18 at 22:36















Thank for your helping but I think I know what is my problem. Because when I symblink I am already in ~/dotfiles/termite/ and use ln -s config ~/.config/termite/config and when I try to edit or read it'll come up with error Too many levels of symbolic links. After that I tried to symblink full path like this $pwd (~/dotfiles/termite/) $ ln -s ~/dotfiles/termite/config ~/.config/termite/config And it is editable right now. Again, thank for your time to helping me.
– HieuC
Nov 18 at 22:36




Thank for your helping but I think I know what is my problem. Because when I symblink I am already in ~/dotfiles/termite/ and use ln -s config ~/.config/termite/config and when I try to edit or read it'll come up with error Too many levels of symbolic links. After that I tried to symblink full path like this $pwd (~/dotfiles/termite/) $ ln -s ~/dotfiles/termite/config ~/.config/termite/config And it is editable right now. Again, thank for your time to helping me.
– HieuC
Nov 18 at 22:36

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482613%2fcan-not-edit-file-symlinked-permission-denied%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

Peggy Mitchell

The Forum (Inglewood, California)

Palaiologos