Can not edit file symlinked (Permission denied)

Clash 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?
dot-files
|
show 2 more comments
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?
dot-files
Are you trying to execute~/dotfiles/termite/configusing 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 ofll ~/dotfiles/termite/configto your question.
– Nasir Riley
Nov 18 at 21:50
Note: the commandln -s ~/dotfiles/termite/config - > ~/.config/termite/configdoes 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 isln -s ~/dotfiles/termite/config ~/.config/termite/config.
– Nasir Riley
Nov 18 at 21:58
|
show 2 more comments
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?
dot-files
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
dot-files
edited Nov 18 at 22:06
asked Nov 18 at 21:34
HieuC
83
83
Are you trying to execute~/dotfiles/termite/configusing 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 ofll ~/dotfiles/termite/configto your question.
– Nasir Riley
Nov 18 at 21:50
Note: the commandln -s ~/dotfiles/termite/config - > ~/.config/termite/configdoes 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 isln -s ~/dotfiles/termite/config ~/.config/termite/config.
– Nasir Riley
Nov 18 at 21:58
|
show 2 more comments
Are you trying to execute~/dotfiles/termite/configusing 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 ofll ~/dotfiles/termite/configto your question.
– Nasir Riley
Nov 18 at 21:50
Note: the commandln -s ~/dotfiles/termite/config - > ~/.config/termite/configdoes 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 isln -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
|
show 2 more comments
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
Thank for your helping but I think I know what is my problem. Because when I symblink I am already in~/dotfiles/termite/and useln -s config ~/.config/termite/configand when I try to edit or read it'll come up with errorToo 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/configAnd it is editable right now. Again, thank for your time to helping me.
– HieuC
Nov 18 at 22:36
add a comment |
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
Thank for your helping but I think I know what is my problem. Because when I symblink I am already in~/dotfiles/termite/and useln -s config ~/.config/termite/configand when I try to edit or read it'll come up with errorToo 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/configAnd it is editable right now. Again, thank for your time to helping me.
– HieuC
Nov 18 at 22:36
add a comment |
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
Thank for your helping but I think I know what is my problem. Because when I symblink I am already in~/dotfiles/termite/and useln -s config ~/.config/termite/configand when I try to edit or read it'll come up with errorToo 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/configAnd it is editable right now. Again, thank for your time to helping me.
– HieuC
Nov 18 at 22:36
add a comment |
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
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
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 useln -s config ~/.config/termite/configand when I try to edit or read it'll come up with errorToo 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/configAnd it is editable right now. Again, thank for your time to helping me.
– HieuC
Nov 18 at 22:36
add a comment |
Thank for your helping but I think I know what is my problem. Because when I symblink I am already in~/dotfiles/termite/and useln -s config ~/.config/termite/configand when I try to edit or read it'll come up with errorToo 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/configAnd 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
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Are you trying to execute
~/dotfiles/termite/configusing 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/configto your question.– Nasir Riley
Nov 18 at 21:50
Note: the command
ln -s ~/dotfiles/termite/config - > ~/.config/termite/configdoes 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