Hi, I tried to mount CIFS with "mount" resource but doing something like this:
mount '/mnt/directory' do
password PASSWORD
username USERNAME
device "//192.168.1.2/something"
fstype 'cifs'
pass 0
action [:mount]
end
results in getting:
Please enter password with the systemd-tty-ask-password-agent tool!
While just doing this works:
execute 'mount-cifs' do
command "mount.cifs -o soft,uid=0,forceuid,gid=0,forcegid,username=USERNAME,password=PASSWORD //192.168.1.2/something /mnt/directory"
end
Why is that? And what is the proper way to pass options like "forceuid,gid=0,forcegid" etc to the "mount" resource?