NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

SAMBA write file using LabVIEW RT permissions error.

Solved!
Go to solution

Hi All

I'm having a issue writing a file to a network drive using SAMBA from a LabVIEW RT application running on an NI Industrial Controller

I installed and setup SAMBA via the following tutorial

https://forums.ni.com/ni/attachments/ni/7310/123/6/Samba_demo.zip

I can successfully create a mount to the network folder.

In LabVIEW RT I can list and read the files on the network folder.

In Putty I can run a Linux command on the IC to create a text file on the network drive.

However in LabVIEW RT running on the IC I cannot write or copy a file to the network drive, I get a file permission error.

 

Much appreciated
Kurt

0 Kudos
Message 1 of 3
(1,653 Views)

what are the permissions set to on the files?

 

can ssh in and do an ls -al?

 

That would be useful.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
Message 2 of 3
(1,636 Views)
Solution
Accepted by topic author KurtFriday

Hey Sam

I got it working, the secret sauce is here

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kKgxSAE&l=en-AU

 

creating the local directory to write data to in /home/lvuser and then using uid=lvuser was what got it all working


0 Kudos
Message 3 of 3
(1,619 Views)