Home Network File/Folder Sharing Issue

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Sorceror

Home Network File/Folder Sharing Issue

Post by Sorceror »

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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Post by altair4 »

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.
Sorceror

Re: Home Network File/Folder Sharing Issue

Post by Sorceror »

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
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Post by altair4 »

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.
Sorceror

Re: Home Network File/Folder Sharing Issue

Post by Sorceror »

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.
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Post by altair4 »

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.
Sorceror

Re: Home Network File/Folder Sharing Issue

Post by Sorceror »

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
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Post by altair4 »

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.
Sorceror

Re: Home Network File/Folder Sharing Issue

Post by Sorceror »

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
altair4
Level 20
Level 20
Posts: 11458
Joined: Tue Feb 03, 2009 10:27 am

Re: Home Network File/Folder Sharing Issue

Post by altair4 »

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.
Locked

Return to “Software & Applications”