You are not logged in.

#1 2016-08-27 10:11:40

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

[SOLVED] can't access to samba share

@

Last edited by duyinthee (2016-12-26 00:57:50)

Offline

#2 2016-08-27 11:14:42

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] can't access to samba share

From 'man mount.cifs':

Options to mount.cifs are specified as a comma-separated list of key=value pairs.

You are separating your options with a space, which is confusing the command into thinking 'password=secret' is the address of the share, and '//192.168.43.143/' is where you want to mount it.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-08-27 13:23:18

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] can't access to samba share

I tried it.
but I get this:

# mount.cifs -o username=samusername,password=secrete //192.168.43.82 ~/tmp
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Offline

#4 2016-08-27 13:33:41

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] can't access to samba share

even if I removed arguments, the error message persist. All of my user names are same.

# mount.cifs //192.168.43.82 ~/tmp
Password for root@//192.168.43.82: 
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Offline

#5 2016-08-27 13:44:27

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] can't access to samba share

this not work too.

# mount.cifs -o sec=ntlm,username=msh,password=cprlaU5 //192.168.43.82 ~/tmp 
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

Offline

#6 2016-08-27 13:52:32

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: [SOLVED] can't access to samba share

Looks like it's not enough to just specify a server, you need to specify the share name too. The man page tells you this too.

       The mount.cifs utility attaches the UNC name (exported network resource) specified as
       service (using //server/share syntax, where "server" is the server name or IP address and
       "share" is the name of the share) 

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2016-08-28 12:44:53

duyinthee
Member
Registered: 2015-06-14
Posts: 242
Website

Re: [SOLVED] can't access to samba share

@

Last edited by duyinthee (2016-12-26 00:58:23)

Offline

Board footer

Powered by FluxBB