Mount Windows public share on Linux without username & password

12,382

Did you try using the option guest ? Or user=,password= ?

But I'm affraid you can't if the share is not allowed to Everyone

Share:
12,382

Related videos on Youtube

Squid_Vicious
Author by

Squid_Vicious

Updated on September 18, 2022

Comments

  • Squid_Vicious
    Squid_Vicious almost 2 years

    I am using a backup script to first make a mysql dump file on a linux box and then copy it to a windows network share. This works fine if the network share has a username and password asscociated with it however this new share has no user /password protection and I cant seem to mount this new share on the linux box. Keep getting "permission denied". If I leave out the username / password from the mount.cifs command it defaults to the linux username and prompts for password which never works as it is not set up on the windows share. I dont have access to the Windows server to change this.

    Is there a way to mount this new share without username and password?

  • Squid_Vicious
    Squid_Vicious almost 8 years
    Yes, tried that but would not work.
  • Squid_Vicious
    Squid_Vicious almost 8 years
    However, just a thought, The Linux username and password does not exist on the domain but will use a username and password that does to see if that makes a difference even though Everyone access has been enabled on the Windows folder
  • Piyush Kumar
    Piyush Kumar over 6 years
    user=, password= works perfectly
  • WooYek
    WooYek about 6 years
    user=guest password=guest worked here
  • Joe Huang
    Joe Huang over 3 years
    @SledgehammerPL not work. Still ask my password of root.
  • htmlcoderexe
    htmlcoderexe about 2 years
    @SledgehammerPL this worked for my setup