Closed farhad-taran closed 4 years ago
hello,
I have installed credstash on WSL 2 on windows and I am not able to run it due to my user not having permissions on the credstash.log file.
I have tried to change the permissions using sudo but that failed too.
I want to know if there is a workaround for this, maybe changing the log file location or a way to add permissions.
ftaran@DESKTOP-S0EN2QH:/mnt/c/WINDOWS/system32$ credstash Traceback (most recent call last): File "/home/linuxbrew/.linuxbrew/bin/credstash", line 11, in <module> load_entry_point('credstash==1.17.1', 'console_scripts', 'credstash')() File "/home/linuxbrew/.linuxbrew/Cellar/credstash/1.17.1_2/libexec/bin/credstash.py", line 1095, in main setup_logging(args.log_level, args.log_file) File "/home/linuxbrew/.linuxbrew/Cellar/credstash/1.17.1_2/libexec/bin/credstash.py", line 82, in setup_logging handler = logging.FileHandler(log_file) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/logging/__init__.py", line 1143, in __init__ StreamHandler.__init__(self, self._open()) File "/home/linuxbrew/.linuxbrew/opt/python@3.8/lib/python3.8/logging/__init__.py", line 1172, in _open return open(self.baseFilename, self.mode, encoding=self.encoding) PermissionError: [Errno 13] Permission denied: '/mnt/c/WINDOWS/system32/credstash.log' ftaran@DESKTOP-S0EN2QH:/mnt/c/WINDOWS/system32$ sudo chown -R $(whoami) /mnt/c/WINDOWS/system32/credstash.log [sudo] password for ftaran: chown: changing ownership of '/mnt/c/WINDOWS/system32/credstash.log': Permission denied ftaran@DESKTOP-S0EN2QH:/mnt/c/WINDOWS/system32$ ls -l | grep 'credstash.log' ls: config: Permission denied ls: Configuration: Permission denied ls: DriverState: Permission denied ls: FxsTmp: Permission denied ls: ias: Permission denied ls: MsDtc: Permission denied ls: networklist: Permission denied ls: SleepStudy: Permission denied ls: sru: Permission denied ls: Tasks: Permission denied ls: Tasks_Migrated: Permission denied ls: WDI: Permission denied -r-xr-xr-x 1 root root 0 Aug 1 12:23 credstash.log ftaran@DESKTOP-S0EN2QH:/mnt/c/WINDOWS/system32$
hello,
I have installed credstash on WSL 2 on windows and I am not able to run it due to my user not having permissions on the credstash.log file.
I have tried to change the permissions using sudo but that failed too.
I want to know if there is a workaround for this, maybe changing the log file location or a way to add permissions.