Windows 7 and LMDE shares... [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Windows 7 and LMDE shares... [SOLVED]

Postby Kilhd on Tue Jan 10, 2012 11:47 pm

Hi,
I have a home network and wish to share directories across multiple operating systems. I have LMDE on my main desktop and windows 7 on my netbook. I have shared a directory from windows 7 and can see it just fine on my mint box. I have shared folder on my mint box (right-click, sharing properties) and in windows 7 I can see the box listed in "network places" but when I try to connect to it, it asks for user and password but I can NOT get the information to work. I have done this in the past with no problem but I can't recall how exactly I did it. I do remember something about windows 7 being the issue. I have changed the following and doesn't work: (local security policy)
1)Network security: LAN Manager authentication level
Send LM & NTLM responses
2)Minimum session security for NTLM SSP
Disable Require 128-bit encryption

Anyone out there have an idea on what to check? I am sure it's some small option I have forgotten. Again I am trying to open a shared folder in windows 7 FROM linux. Any information is gladly appreciated and thanks for reading!
Last edited by Kilhd on Thu Jan 12, 2012 5:20 pm, edited 1 time in total.
User avatar
Kilhd
Level 1
Level 1
 
Posts: 19
Joined: Wed Nov 24, 2010 10:46 am
Location: Alabama

Linux Mint is funded by ads and donations.
 

Re: Windows 7 and LMDE shares...

Postby altair4 on Wed Jan 11, 2012 7:38 am

I have shared folder on my mint box (right-click, sharing properties) and in windows 7 I can see the box listed in "network places" but when I try to connect to it, it asks for user and password but I can NOT get the information to work.


Please post the output of the following commands:
Code: Select all
hostname

Code: Select all
testparm -s

Code: Select all
net usershare info --long
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: Windows 7 and LMDE shares...

Postby Kilhd on Wed Jan 11, 2012 5:11 pm

hostname : mintdeb

testparm -s :
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword: * %n\n *password\supdated\ssuccessfully* .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
dns proxy = No
panic action = /usr/share/samba/panic-action %d

[homes]
comment = Home Directories
valid users = %S
create mask = 0700
directory mask = 0700
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
browseable = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers



net usershare info --long :
[Folder1]
path=/some/DIR/Here/thats/Shared
comment=
usershare_acl=Everyone:R,Unix User\root:F,
guest_ok=n

[downloads]
path=/home/user/Downloads
comment=
usershare_acl=Everyone:R,Unix User\root:F,
guest_ok=n

[Folder2]
path=/another/DIR/Shared
comment=
usershare_acl=Everyone:R,Unix User\root:F,
guest_ok=n
User avatar
Kilhd
Level 1
Level 1
 
Posts: 19
Joined: Wed Nov 24, 2010 10:46 am
Location: Alabama

Re: Windows 7 and LMDE shares...

Postby altair4 on Wed Jan 11, 2012 7:11 pm

** Why are you creating all your shares as root? Is it because you get an error message saying you don't have access to /var/lib/samba/usershares? Your smb.conf has usershare parameters missing which is why you can't click on "Guest Access" .

Samba doesn't work out of the box in LMDE so you need to fix things: viewtopic.php?f=42&t=23169&p=315218#p315218

** If you really meant to create shares that require authentication you need to create local users on the server and add them to the samba database?

You need to create a local user to represent the remote user first.

Then you need to add them to samba:
Code: Select all
sudo smbpasswd -a user-name
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: Windows 7 and LMDE shares...

Postby Kilhd on Wed Jan 11, 2012 7:41 pm

"Why are you creating all your shares as root? Is it because you get an error message saying you don't have access to /var/lib/samba/usershares? " - Yes

Thank you for the information and pointing me in the right direction. I will change all the settings when I return home later tonight and see if I can fix things the way I want. Much appreciated!
User avatar
Kilhd
Level 1
Level 1
 
Posts: 19
Joined: Wed Nov 24, 2010 10:46 am
Location: Alabama

Re: Windows 7 and LMDE shares...

Postby altair4 on Wed Jan 11, 2012 8:03 pm

After you make the changes you might want to go back into Nautilus as root and "unshare" those folders. If you don't then when you try to share them as a regular user you'll get an error message since they have already been shared by root.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4662
Joined: Tue Feb 03, 2009 10:27 am

Re: Windows 7 and LMDE shares... [SOLVED]

Postby Kilhd on Thu Jan 12, 2012 5:21 pm

Thanks again for the very helpful information. I thought I had done everything listed, guess I missed a step before.
User avatar
Kilhd
Level 1
Level 1
 
Posts: 19
Joined: Wed Nov 24, 2010 10:46 am
Location: Alabama

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 4 guests