You are not logged in.
Hi!
So as the title sugests I've been having troubles with chroot when using chroot +x "filename"
Here is the output:
doas chroot +x /bin/music
chroot: cannot change root directory to '+x': No such file or directory
That happens with any file i try to use it on.
Here is what is on the file:
#!/bin/sh
#script to run videos from dmenucd "/home/gustavo/Música" && mpv "$(ls | dmenu -l 7)"
I have done some research using duckduckgo but i have not seen anyone comment on this issue yet, so i hope someone from here might know the answer.
ps: sorry if there are any spelling mistakes i'm not really used to english and it's a bit late
Hallo!
Offline
You mean to use chmod, not chroot?
Offline
As Scimmia already suggested, chroot is there to change the root directory of your current shell environment. On the other hand chmod is there to change the file modes such as the read, write and execute flags. The latter is obviously what you want to do. You can almost always find help on any command via
man <command>Inofficial first vice president of the Rust Evangelism Strike Force
Offline
yup it was exactly that for some reason i was using chroot instead of chmod. Thank you both!
Hallo!
Offline
Please remember to mark your thread [SOLVED] (edit the title of your first post).
Offline