Home Network File/Folder Sharing Issue

Forum rules
Before you post please read this

Home Network File/Folder Sharing Issue

Postby Sorceror on Sat Mar 03, 2012 1:02 pm

I've installed Mint KDE 12 on my laptop and I'm trying to access some shared partitions on my main desktop pc which is running Mint 12 Gnome.
It's found the partitions/folders alright, but when I try to open one I get an 'Authorisation Dialogue' asking me for a username/password. The only one it could be would be the authorisation I use on the desktop which contains all the partitions, but this username/password is not being accepted by KDE.
Is there any way around this?
Sorceror
Level 1
Level 1
 
Posts: 28
Joined: Sun Aug 28, 2011 5:56 am

Linux Mint is funded by ads and donations.
 

Re: Home Network File/Folder Sharing Issue

Postby altair4 on Sat Mar 03, 2012 1:08 pm

You never mentioned how you are sharing the directory on the Gnome machine. Samba, NFS, SSH,....

Just in case you are running Samba please post the output of the following commands from the Gnome machine:
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 15
Level 15
 
Posts: 5802
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Postby Sorceror on Sat Mar 03, 2012 2:51 pm

I have no idea what I'm using to share directories on the Gnome pc. I just right clicked inside of the folders, selected properties and went to the 'share' tab which allowed me to tick a box for sharing. Whatever it is, it's already built in and set up as part of it's installation.

The results as requested are as follows:


testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[printers]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
server string = %h server (Samba, LinuxMint)
map to guest = Bad User
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
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d

[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
[musiclibrary]
path=/media/Music Library
comment=
usershare_acl=Everyone:F,
guest_ok=n

[music vid 1]
path=/media/Music Vid 1
comment=
usershare_acl=Everyone:F,
guest_ok=n

[personal]
path=/media/Personal
comment=
usershare_acl=Everyone:F,
guest_ok=n

[talk]
path=/media/TV+/Talk
comment=
usershare_acl=Everyone:F,
guest_ok=n

[tv]
path=/media/TV+
comment=
usershare_acl=Everyone:F,
guest_ok=n
Sorceror
Level 1
Level 1
 
Posts: 28
Joined: Sun Aug 28, 2011 5:56 am

Re: Home Network File/Folder Sharing Issue

Postby altair4 on Sat Mar 03, 2012 3:50 pm

1st: Your using Samba - a specific type of samba called "Usershares"

2nd: All of your shares require a username and password to gain access.

Assuming you are trying to access this share using your own username you need to add yourself to the samba password database:
Code: Select all
sudo smbpasswd -a your-user-name


Now try to access the share with that username and password.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5802
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Postby Sorceror on Sun Mar 04, 2012 10:11 am

Okay, so I've set the username/password for Samba shares on my Mint Gnome pc, but now my Mint KDE laptop which appears to be connected to the Gnome pc isn't seeing any of the shared partitions/folders.
Sorceror
Level 1
Level 1
 
Posts: 28
Joined: Sun Aug 28, 2011 5:56 am

Re: Home Network File/Folder Sharing Issue

Postby altair4 on Sun Mar 04, 2012 10:51 am

Can the Gnome PC see itself:
Code: Select all
smbtree
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5802
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Postby Sorceror on Sun Mar 04, 2012 12:24 pm

Yes, it sees itself as well as the laptop.


WORKGROUP
\\SAMSUNGMINTKDE samsungmintkde server (Samba, LinuxMint)
\\SAMSUNGMINTKDE\PDF PDF
\\SAMSUNGMINTKDE\print$ Printer Drivers
\\SAMSUNGMINTKDE\IPC$ IPC Service (samsungmintkde server (Samba, LinuxMint))
\\MAINMINT MainMint server (Samba, LinuxMint)
\\MAINMINT\musiclibrary
\\MAINMINT\music vid 1
\\MAINMINT\personal
\\MAINMINT\talk
\\MAINMINT\tv
\\MAINMINT\PDF Generic CUPS-PDF Printer
\\MAINMINT\IPC$ IPC Service (MainMint server (Samba, LinuxMint))
\\MAINMINT\print$ Printer Drivers
Sorceror
Level 1
Level 1
 
Posts: 28
Joined: Sun Aug 28, 2011 5:56 am

Re: Home Network File/Folder Sharing Issue

Postby altair4 on Sun Mar 04, 2012 1:42 pm

Run the same command from KDE. If it shows the same thing then the problem is with KDE's file manager perhaps. I haven't used KDE since 3.5 so I'm not familiar with it any more. But in the location field of it's file manager specify the location specifically and see if it shows you the shares:
Code: Select all
smb://mainmint
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5802
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Postby Sorceror on Sun Mar 04, 2012 2:13 pm

No, it's giving me a connection error, which I suppose makes sense in this case.


WORKGROUP
\\SAMSUNGMINTKDE samsungmintkde server (Samba, LinuxMint)
\\SAMSUNGMINTKDE\PDF PDF
\\SAMSUNGMINTKDE\print$ Printer Drivers
\\SAMSUNGMINTKDE\IPC$ IPC Service (samsungmintkde server (Samba, LinuxMint))
\\MAINMINT MainMint server (Samba, LinuxMint)
cli_start_connection: failed to connect to MAINMINT<20> (0.0.0.0). Error NT_STATUS_UNSUCCESSFUL
Sorceror
Level 1
Level 1
 
Posts: 28
Joined: Sun Aug 28, 2011 5:56 am

Re: Home Network File/Folder Sharing Issue

Postby altair4 on Sun Mar 04, 2012 3:17 pm

I'm going to give these instructions for Gnome but you need to do this for both Gnome and KDE:
Edit smb.conf as root:
Code: Select all
gksu gedit /etc/samba/smb.conf

Add a line to the [global] section - right under the workgroup line :
Code: Select all
name resolve order = bcast host lmhosts wins

Then restart samba:
Code: Select all
sudo service smbd restart
sudo service nmbd restart

Wait about 5 minutes for the network to settle down and try smbtree again on KDE to see if the error went away.

If it's still there then the problem may be a permissions issue on the shared folders - although you should have been given a different error. Who owns and what are the permissions on /media:
Code: Select all
ls -al /media
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 15
Level 15
 
Posts: 5802
Joined: Tue Feb 03, 2009 10:27 am

Linux Mint is funded by ads and donations.
 

Return to KDE

Who is online

Users browsing this forum: No registered users and 2 guests