remote explorer chmod doesn't work #266

Closed
opened 2021-11-20 15:22:54 +00:00 by ungleich-gitea · 2 comments

Created by: nuex

I was getting "File not found" errors during the chmod 0700 global/type explorers step while trying to provision an AWS instance with the default ubuntu image.

I fixed it by using find to execute chmod instead of the current chmod 0700 /explorer/path/* command in explorer.py. The branch is here: https://github.com/nuex/cdist/tree/chmod_explorers_with_find.

I figured I would open the issue here for discussion to see if is just me before submitting a pull request.

*Created by: nuex* I was getting "File not found" errors during the chmod 0700 global/type explorers step while trying to provision an AWS instance with the default ubuntu image. I fixed it by using find to execute chmod instead of the current `chmod 0700 /explorer/path/*` command in explorer.py. The branch is here: https://github.com/nuex/cdist/tree/chmod_explorers_with_find. I figured I would open the issue here for discussion to see if is just me before submitting a pull request.
Author
Owner

Created by: nuex

This was happening because my shell wasn't able to handle filename globbing because it couldn't access the files (sudo). Fixed it by running commands under a sudo shell. Pull request with the updated sudo remote exec example is here: https://github.com/telmich/cdist/pull/180

*Created by: nuex* This was happening because my shell wasn't able to handle filename globbing because it couldn't access the files (sudo). Fixed it by running commands under a sudo shell. Pull request with the updated sudo remote exec example is here: https://github.com/telmich/cdist/pull/180
Author
Owner

Created by: telmich

Hey James,

my thoughts on this:

- it's unclear, why the .../* approach does not work -> maybe find
  out why
  -> maybe we can keep it
- using find is fine for me, but try to find a good portable version
    -> + and co. are gnu only.
    -> maybe opengroup docs can help there...

Cheers,

Nico

Chase James [Fri, Jun 07, 2013 at 06:57:37PM -0700]:

I was getting "File not found" errors during the chmod 0700 global/type explorers step while trying to provision an AWS instance with the default ubuntu image.

I fixed it by using find to execute chmod instead of the current chmod 0700 /explorer/path/* command in explorer.py. The branch is here: https://github.com/nuex/cdist/tree/chmod_explorers_with_find.

I figured I would open the issue here for discussion to see if is just me before submitting a pull request.


Reply to this email directly or view it on GitHub:
https://github.com/telmich/cdist/issues/179

PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0

*Created by: telmich* Hey James, my thoughts on this: ``` - it's unclear, why the .../* approach does not work -> maybe find out why -> maybe we can keep it - using find is fine for me, but try to find a good portable version -> + and co. are gnu only. -> maybe opengroup docs can help there... ``` Cheers, Nico Chase James [Fri, Jun 07, 2013 at 06:57:37PM -0700]: > I was getting "File not found" errors during the chmod 0700 global/type explorers step while trying to provision an AWS instance with the default ubuntu image. > > I fixed it by using find to execute chmod instead of the current `chmod 0700 /explorer/path/*` command in explorer.py. The branch is here: https://github.com/nuex/cdist/tree/chmod_explorers_with_find. > > I figured I would open the issue here for discussion to see if is just me before submitting a pull request. > > --- > > Reply to this email directly or view it on GitHub: > https://github.com/telmich/cdist/issues/179 ## PGP key: 7ED9 F7D3 6B10 81D7 0EC5 5C09 D7DC C8E4 3187 7DF0
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ungleich-public/cdist#266
No description provided.