Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Eric_Talend
Creator
Creator

How can I change file rights ?

Hello,

I must generate a file with this file rights : 660.

My user Talend generate the file with another file right.

How can I change this file rights with Talend Studio ?

I find tFileProperties but this composant display the file rights.

Kind regards.

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

Under Linux, the chmod command is used to change file permissions.

So from a Talend Job, use a tSystem component and specify the chmod command in the Use Single Command field parameter.

For more information about the tSystem component, see tSystem in the Talend Help Center.

Best regards

Sabrina

View solution in original post

6 Replies
Anonymous
Not applicable

Hello,

Under Linux, the chmod command is used to change file permissions.

So from a Talend Job, use a tSystem component and specify the chmod command in the Use Single Command field parameter.

For more information about the tSystem component, see tSystem in the Talend Help Center.

Best regards

Sabrina

Eric_Talend
Creator
Creator
Author

Hello,

yes, I want to change from a Talend Job.

Thanks for your answer.

Kind regards.

 

Anonymous
Not applicable

Hello,

Great it helps. Feel free to let us know if there is any further help we can give.

Best regards

Sabrina

XJ_1630
Contributor III
Contributor III

Talend creates JAVA code

 

you have a question about Java, and not about Talend

 

have a look at:

 

https://www.tutorialspoint.com/how-to-set-file-permissions-in-java

 

 

you could implement if in a tJava

 

 

Eric_Talend
Creator
Creator
Author

My problem was to modify file permissions with Talend.

 

Talend call a component (tSystem).

Eric_Talend
Creator
Creator
Author

Thanks for this solution.

 

I'm not "fluent" in Java. So I prefer to call a Talend component 😉