You are not logged in.

#1 2025-03-22 17:06:30

coldreactive
Member
Registered: 2024-07-04
Posts: 35

[Solved] Local Mounting a Samba/SMB but without credentials, need rw

Right now, I manually have to execute a command after every boot to mount my samba share locally:

sudo mount --mkdir -t cifs //192.168.8.1/disk1_part1 /mnt/smb -o _netdev,nofail,uid=1000

But I wanted to have it auto run at login/etc. But since I don't want to go through the hassle of setting up pkexec to work with all requests (Since using pkexec geany as an example says it could not open display) I'd rather try using fstab. I don't know how to go about doing this, however, since the samba drive DOES NOT REQUIRE A USERNAME OR PASSWORD, and most guides/topics show using credentials. This is a home network, no one else accesses it but me and/or my family. So all devices on the network (including printers/etc.) do not have passwords/etc.

Last edited by coldreactive (2025-03-23 02:46:21)

Offline

#2 2025-03-22 21:35:28

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,381

Offline

#3 2025-03-23 02:45:36

coldreactive
Member
Registered: 2024-07-04
Posts: 35

Re: [Solved] Local Mounting a Samba/SMB but without credentials, need rw

Thanks, adding this to fstab worked:

//192.168.8.1/disk1_part1                 /mnt/smb       cifs    _netdev,nofail,sec=none,uid=1000 0 0

Offline

Board footer

Powered by FluxBB