vista - Ubuntu Sharing without special accounts.

N

nyathancha

Hi,
I have vista box and a linux box running Ubuntu 7.04. I am trying to
set up a share between the two that doesn't require special accounts
on the boxes (so my flatmates running XP would be able to access
either of the machines easily).

Currently with samba running on the linux box, both machines can see
each other, but everytime i try to access the vista machine it asks me
for a user name and password. I went into the Network and Sharing
center in the control panel and turned off "Password Protected
Sharing" option. But it still asks me for a username and password
(once, i provide them it works fine)

Going from vista to linux seems trickier. The linux box asks me for a
username and password as well, but even after I enter them, it says
"invalid username".

What am I doing wrong here? Any help would be much appreciated.

Thanks in advance
 
C

Charlie Tame

Hi,
I have vista box and a linux box running Ubuntu 7.04. I am trying to
set up a share between the two that doesn't require special accounts
on the boxes (so my flatmates running XP would be able to access
either of the machines easily).

Currently with samba running on the linux box, both machines can see
each other, but everytime i try to access the vista machine it asks me
for a user name and password. I went into the Network and Sharing
center in the control panel and turned off "Password Protected
Sharing" option. But it still asks me for a username and password
(once, i provide them it works fine)

Going from vista to linux seems trickier. The linux box asks me for a
username and password as well, but even after I enter them, it says
"invalid username".

What am I doing wrong here? Any help would be much appreciated.

Thanks in advance


Well you can try this and see if it works, append to the very end of
/etc/samba/smb.conf - the shared drive in this case is called Public so
you will want to change that - if you used the Ubuntu GUI to share you
will find some of this already there including the [foldername] so
basically it is just the mask references you probably need to add.

Note this does absolutely nothing for your security but should work.

You need to restart Samba of course, or the machine.


[Public]
path = /home/public
available = yes
browseable = yes
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup

See you can make Linux insecure too :)
 
D

dennis@home

Hi,
I have vista box and a linux box running Ubuntu 7.04. I am trying to
set up a share between the two that doesn't require special accounts
on the boxes (so my flatmates running XP would be able to access
either of the machines easily).

Currently with samba running on the linux box, both machines can see
each other, but everytime i try to access the vista machine it asks me
for a user name and password. I went into the Network and Sharing
center in the control panel and turned off "Password Protected
Sharing" option. But it still asks me for a username and password
(once, i provide them it works fine)

Not tried that yet.
Going from vista to linux seems trickier. The linux box asks me for a
username and password as well, but even after I enter them, it says
"invalid username".

What am I doing wrong here? Any help would be much appreciated.

To access my Linux SMB server box I had to do two things:-

Use a user name in the format user@host without the @host it just keept
clearing it.

I also changed the authentication as the smb server is a bit old using the
following registry entry:-

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"LmCompatibilityLevel"=dword:00000002

<<<<<<<

Just put the above in a file called "nas registry changes.reg" and double
click it if you need to try it.
As always backups are advised for safety.
 
M

Malke

Hi,
I have vista box and a linux box running Ubuntu 7.04. I am trying to
set up a share between the two that doesn't require special accounts
on the boxes (so my flatmates running XP would be able to access
either of the machines easily).

Currently with samba running on the linux box, both machines can see
each other, but everytime i try to access the vista machine it asks me
for a user name and password. I went into the Network and Sharing
center in the control panel and turned off "Password Protected
Sharing" option. But it still asks me for a username and password
(once, i provide them it works fine)

Going from vista to linux seems trickier. The linux box asks me for a
username and password as well, but even after I enter them, it says
"invalid username".

What am I doing wrong here? Any help would be much appreciated.

Thanks in advance

It sounds like you forgot to create user accounts/passwords on the Linux
box to match the ones on the Windows boxen *and* you forget to add the
users/passwords to Samba. It is a two-step process. I don't know what
you mean by "special accounts". You have to have identical user accounts
in both places. There's nothing preventing you from making a "Visitors"
account on all of the computers. In addition, note that Guest access is
off by default in Samba (as it should be). Here is how to share files
between Windows and Linux using Samba and the additional information you
need if there is a Vista box involved.

A. General Samba/Windows information

1. On Windows boxen, make sure all accounts are properly named (no
damned spaces) and there are no null passwords. Configure any firewalls
to allow lan traffic. Create shares as desired. Note that if any boxen
are XP Pro, you should disable Simple Sharing (Folder Options>View).

2. On Linux, create identical user account/passwords with your distro's
configuration method.
3. Make sure you've installed Samba server/client with your distro's
configuration method.
4. Configure run levels so that the nmb and smb daemons start at bootup.

5. Now add your users to Samba. Make these match the ones on Windows. I
think the easiest way is from the console, so open one, su to root, and
type:
smbpasswd -a username [enter]
(enter password)
(enter password again)

6. Go to your distro's configuration method and set your Samba server
and client Identity to match your Windows Workgroup name.

7. I use KDE, so if you use Gnome or another window manager you'll need
to figure this next bit out yourself. Open up the Control Center and go
to Internet/Network and then Samba. Click on the Administrator Mode
(enter root password). I use User security level. Check to make sure
Shares (these are for the Linux box of course) are the way you want
them. Apply and close that part.

8. Click on File Sharing and enable Administrator Mode. Check "Enable
local network file sharing". I have mine set on "Advanced sharing".
Check the box for "Use Samba" rather than NFS.

And that's pretty much it. Now if you want to make a new share - say a
folder that isn't in your /home, you can right-click it to set Sharing
Properties. If all you want to share is your /home, you're done. Since
9.3, SUSE has a useful Network icon on the desktop (at least in KDE it
does) where you can find your Windows Workgroup and see all the smb
shares. Perhaps your distro does, too.

Note: To use a Linux firewall w/Samba - If you do not have WINS on the
network, then your network is relying on broadcasted browser
announcements for NetBios resolution. Configure your firewall to allow
NetBios broadcasts, with UDP and TCP ports 137-139 open.

This site has an excellent firewall how-to -
http://www.tweakhound.com/linux/samba/page_5.htm

B. Extra information for Vista/Linux sharing:

From Michael Bishop (MS) - Basically, the issue with Samba and Vista is
that Vista no longer permits LM or NTLM authentication by default; only
NTLMv2. Samba versions 1.x and 2.x only support LM and NTLM, so there's
an issue there.

Recommended solution: upgrade to Samba 3.x and enable NTLMv2 by adding
"client ntlmv2 auth = yes" to your smb.conf file. Because of another
issues with previous versions, I strongly recommend upgrading to 3.0.22
or later regardless of your choice for this particular instance.

Alternate solution: change Vista's security settings to permit
lower-security authentications. (as below)

To enable Windows Vista to connect to Mac OS X with Windows File Sharing
enabled, you will need to change the following policy in Windows Vista:

Start>Run>secpol.msc [enter]

Click on "Local Policies" --> "Security Options"

Navigate to the policy "Network Security: LAN Manager authentication
level" and double-click it to get its Properties. By default Windows
Vista sets the policy to "NTVLM2 responses only". Use the drop-down
arrow to change this to "LM and NTLM – use NTLMV2 session security if
negotiated".

In Vista Home Premium, you won't have this tool so per Steve Winograd, do:

1. Run the registry editor and open this key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa

1. If it doesn't already exist, create a DWORD value named
LmCompatibilityLevel

3. Set the value to 1

4. Reboot


Malke
 
R

Robin T Cox

Hi,
I have vista box and a linux box running Ubuntu 7.04. I am trying to
set up a share between the two that doesn't require special accounts
on the boxes (so my flatmates running XP would be able to access
either of the machines easily).

Currently with samba running on the linux box, both machines can see
each other, but everytime i try to access the vista machine it asks me
for a user name and password. I went into the Network and Sharing
center in the control panel and turned off "Password Protected
Sharing" option. But it still asks me for a username and password
(once, i provide them it works fine)

Going from vista to linux seems trickier. The linux box asks me for a
username and password as well, but even after I enter them, it says
"invalid username".

What am I doing wrong here? Any help would be much appreciated.

Thanks in advance

You need the Networking and Wireless section of the Ubuntu Forums, not
this newsgroup.

http://ubuntuforums.org/forumdisplay.php?f=136
 
7

7

Hi,
I have vista box and a linux box running Ubuntu 7.04. I am trying to
set up a share between the two that doesn't require special accounts
on the boxes (so my flatmates running XP would be able to access
either of the machines easily).

Currently with samba running on the linux box, both machines can see
each other, but everytime i try to access the vista machine it asks me
for a user name and password. I went into the Network and Sharing
center in the control panel and turned off "Password Protected
Sharing" option. But it still asks me for a username and password
(once, i provide them it works fine)

Going from vista to linux seems trickier. The linux box asks me for a
username and password as well, but even after I enter them, it says
"invalid username".

What am I doing wrong here? Any help would be much appreciated.

Thanks in advance

samba.conf needs to be configured - and that means learning it.
Use google.

Alternative Safest way - keep all your important files on the Linux machine
where its less likely to get infected.

Linux machines can share files using ssh.
System > Administration > Synaptic Package Manager
Install ssh. Install Konqueror.
Now enable ssh (if not already done automatically)
System > Administration > Services - enable ssh

On Pista box, download and install free and open source winscp.

The Linux box acts as the server and allows sharing.
From other Linux boxes you can log into the server
using konqueror. Just type
fish://username@ipaddress to connect to PC.
You can open multiple tabs in konqueror and copy
between tabs. (Yes you can have dozens
of machines connected at the same time this way and move
files as if were on your local machine right across the globe
securly. It uses 128 bit encryption.

From any Pista machine, you can log into a Linux server using
winscp to drag and drop files between Pista and Linux server.
Again uses 128 bit encryption
and you can communicate with home servers and work servers through
ordinary internet.
 
G

Guest

Anonymous said:
It's *easier*.

Not really. But it is also not more difficult

What Erik F keeps conveniently "forgetting" is that setting up Samba is a
one time operation
 
7

7

Micoshaft Corporation's Asstrotrufer Erik Funkenbusch wrote on behalf of
Micoshaft Corporation:
...

Yeah, and everyone keeps saying using Samba is just as easy as using
network shares on Windows...


Nope.

BWAAHAHAHAHAHAHAHAHAHAHAHAHHAHAAAAAAAA!!!!

FOOL!!!!
The real problem is that Micoshaft Corporation hasn't got documentation
for how their networks work!!!!!!!!!!!!!!!!!!!

AAHAHAHAHAHAHAHAHAHAHAHAHHAHAAAAAAAA!!!!

They were recently fined a million+ dollars a day until they
turned in the documentation so that others can interoperate with it.
Which they didn't.
So when that got upped to 3 million+ dollars per day, they hired 300+
(get this 300+!!!) engineers to document it.

So if a big corporation that relies on windopws
is now hacked through undocumented windopws networking,
their only best bet is Samba which is documented (or use ssh).

Anyone recommending Micoshaft networking products are dooming
their company to network failure and interoperatbility failure.
Nearly all of the windopws networking problems are *UNFIXABLE*
because even Micoshaft Corporation does not have documentation
or the know how to fix it.
 
G

Guest

James said:
look at the man page

Astounding what multitude of options are available, right? Much better than
the windows counterpart.

The size of the man-page though has nothing to do with ease of use of Samba.
The actual *use* is as easy as it is in windows

Oh, BTW: You have set up your POS "newsreader" so utterly wrong that you
simply *have* to be windows user: Putting every previous content under the
*signature, so it will be wiped and context lost.

Now I know that this 5th rate software (naturally from MS, nobody else could
get it so utterly wrong) does not hide signatures, as it is broken by
design, so users of that garbage are not penalized as much

Nonetheless: Get lost
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top