Author Topic: no pwd for smb?  (Read 440 times)

sporkme

  • Member
  • **
  • Posts: 501
  • Kudos: 149
    • http://sporkme.net/
no pwd for smb?
« on: 28 August 2002, 14:57 »
i would like to eliminate the password from the samba fs mount in the boot proces.  i tried blank pwd, but it didnt like it.  ideas?  best way?
just that you do not take an interest in politics does not mean that politics will not take an interest in you.  -pericles 430 b.c.

voidmain

  • VIP
  • Member
  • ***
  • Posts: 5,605
  • Kudos: 184
    • http://voidmain.is-a-geek.net/
no pwd for smb?
« Reply #1 on: 28 August 2002, 17:22 »
Do you mean when you boot Linux you want it to automatically mount a share on a Windows box (or other Samba server)?

If so use something like this in your /etc/fstab:
Code: [Select]

Of course this is not very secure since you are putting your Windows password in a world readable file. You could also create a secure directory that would contain a small script to mount the share and call it from rc.local so it will mount the share without adding it to /etc/fstab. And I think there is a way to store the password encrpted in another location and still use the fstab method. I'll do a little research and get back with you. In the mean time the above should work (I just tested it).

[ August 28, 2002: Message edited by: VoidMain ]

Someone please remove this account. Thanks...

sporkme

  • Member
  • **
  • Posts: 501
  • Kudos: 149
    • http://sporkme.net/
no pwd for smb?
« Reply #2 on: 29 August 2002, 02:01 »
im not too concerned about security, im not working for the nsa here

it works great, thanks!

if there is a better way shoot it my way, but really i just want it all to come back up after power outages without my attendance
just that you do not take an interest in politics does not mean that politics will not take an interest in you.  -pericles 430 b.c.