Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No permission to read configuration files after installation with snap #617

Closed
kallydev opened this issue Sep 4, 2021 · 1 comment · Fixed by #619
Closed

No permission to read configuration files after installation with snap #617

kallydev opened this issue Sep 4, 2021 · 1 comment · Fixed by #619

Comments

@kallydev
Copy link
Contributor

kallydev commented Sep 4, 2021

Could you write a document for shadowsocks-rust? I wasn't able to get it to run. @DuckSoft

ubuntu@ip-172-26-1-185:~$ shadowsocks-rust.ssserver -c config.json 
loading config "config.json", error while reading file, Os { code: 13, kind: PermissionDenied, message: "Permission denied" }

ubuntu@ip-172-26-1-185:~$ sudo shadowsocks-rust.ssserver -c config.json 
loading config "config.json", error while reading file, Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
ubuntu@ip-172-26-1-185:~$ pwd
/home/ubuntu
ubuntu@ip-172-26-1-185:~$ tree
.
├── config.json
└── snap
    ├── shadowsocks-rust [error opening dir]
    └── tree
        ├── 18
        ├── common
        └── current -> 18

6 directories, 1 file
ubuntu@ip-172-26-1-185:~$ ls -la
total 44
drwxr-xr-x 5 ubuntu ubuntu 4096 Sep  4 11:45 .
drwxr-xr-x 3 root   root   4096 Sep  4 11:36 ..
-rw------- 1 ubuntu ubuntu  990 Sep  4 11:44 .bash_history
-rw-r--r-- 1 ubuntu ubuntu  220 Feb 25  2020 .bash_logout
-rw-r--r-- 1 ubuntu ubuntu 3771 Feb 25  2020 .bashrc
drwx------ 2 ubuntu ubuntu 4096 Sep  4 11:37 .cache
-rw-r--r-- 1 ubuntu ubuntu  807 Feb 25  2020 .profile
drwx------ 2 ubuntu ubuntu 4096 Sep  4 11:36 .ssh
-rw-r--r-- 1 ubuntu ubuntu    0 Sep  4 11:37 .sudo_as_admin_successful
-rw------- 1 ubuntu ubuntu 1925 Sep  4 11:45 .viminfo
-rw-rw-r-- 1 ubuntu ubuntu  179 Sep  4 11:45 config.json
drwxr-xr-x 4 ubuntu ubuntu 4096 Sep  4 11:54 snap
{
  "server": "0.0.0.0.0",
  "server_port": 8388,
  "password": "********",
  "method": "aes-256-gcm",
  "mode": "tcp_and_udp",
  "fast_open": true
}
@kallydev
Copy link
Contributor Author

kallydev commented Sep 4, 2021

I have successfully run it by using arguments.

ubuntu@ip-172-26-1-185:~$ shadowsocks-rust.ssserver -s "0.0.0.0:8388" -m "aes-256-gcm" -k "********"
2021-09-04T12:18:18.552596801+00:00 INFO  shadowsocks 1.12.0
2021-09-04T12:18:18.578737576+00:00 INFO  shadowsocks tcp server listening on 0.0.0.0:8388, inbound address 0.0.0.0:8388

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant