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

'cd' command is not working #28

Closed
bwieckow opened this issue Apr 10, 2019 · 2 comments
Closed

'cd' command is not working #28

bwieckow opened this issue Apr 10, 2019 · 2 comments

Comments

@bwieckow
Copy link

bwieckow commented Apr 10, 2019

Once I execute
su-exec ubuntu cd /home
I got following output:
su-exec: cd: No such file or directory

On the other hand, once I execute su-exec ubuntu ls -l /home the command is working properly.
Output:
total 0

Generally, it is only cd not working for me. Thus, I find it as a bug.

@tianon
Copy link
Contributor

tianon commented Apr 10, 2019 via email

@ncopa
Copy link
Owner

ncopa commented Apr 10, 2019

You need a binary to execute, and as @tianon mentioned, the binary is shell (sh).
su-exec ubuntu sh -c "cd /home"

@ncopa ncopa closed this as completed Apr 10, 2019
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

No branches or pull requests

3 participants