Sir_Siddy

Can You Acesss Shared Files With From Windows To Linux With Having A Password Promt

Recommended Posts

Hey,

I currently have my server pc running windows but would like to use ubuntu. Only thing stopping me is that whenver I want to access a shared file (I use networked drives), it asks for a user name and password. How can I turn that option off.

Share this post


Link to post
Share on other sites

So long as you have the same user name on your linux box and windows box, you can get around this. You also need to leave your samba password blank

from your linux box just type

smbpasswd -a user_name

When it prompt you for a password just hit return(leaves it blank)

Share this post


Link to post
Share on other sites
but can you get it not to promt at all?

If the username and password are the same on both machines, I don't think it'll prompt. At least, I don't remember being prompted.

[Edit: Erk. That's with a Linux server and Windows client. I've never tried the reverse.]

Edited by jcl

Share this post


Link to post
Share on other sites
but can you get it not to promt at all?

it won't prompt you at all. I was just showing you how to set an empty password. Once that is done, you will not be prompted again(assuming you don't have a windows password set) If you use a windows password, you could probably just set it with the smbpasswd command I showed you above to match it. I have never tried it.

This method above is for logging into a Linux samba server from a Windows Client.

If you want to log into a Windows server from a Linux client, you can just save the username and password in your fstab file like this

//ntserver/docs  /mnt/samba  smbfs  username=docsadm,password=D1Y4x9sw  0  0

Edited by shanenin

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...