View previous topic :: View next topic |
Author |
Message |
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
|
Back to top |
|
|
fangorn Veteran
Joined: 31 Jul 2004 Posts: 1886
|
Posted: Thu Aug 04, 2005 10:45 am Post subject: |
|
|
I would try to do what he sais.
>which fileshareset
/usr/kde/3.3/bin/fileshareset
>ll /usr/kde/3.3/bin/fileshareset
-rws--x--x 1 root root 10894 Jun 29 16:40 /usr/kde/3.3/bin/fileshareset
If this is so, specify the share as root. |
|
Back to top |
|
|
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
Posted: Mon Aug 08, 2005 11:47 am Post subject: |
|
|
Here:
Quote: | localhost samba # /usr/kde/3.4/bin/fileshareset
suspicious line "FILESHAREGROUP=" in /etc/security/fileshare.conf
usage: fileshareset --add <dir>
fileshareset --remove <dir>
localhost samba # ls -l /usr/kde/3.4/bin/fileshareset
-rwxr-xr-x 1 root root 10997 Jul 19 22:02 /usr/kde/3.4/bin/fileshareset
localhost samba # |
What to do? |
|
Back to top |
|
|
svenk Tux's lil' helper
Joined: 04 Aug 2005 Posts: 97 Location: Germany
|
Posted: Mon Aug 08, 2005 12:04 pm Post subject: |
|
|
eleanor wrote: | What to do? |
use smb.conf (/etc/samba/smb.conf (Location probably depends on your installation)):
[free]
comment = Comment
path = /mnt/foo/bar
read only = No
create mask = 0766
guest ok = Yes
or something like this (see man-pages)
sven _________________ people said there would be nothing else other than gentoo. I agreed, looking through my window. For many years, I've seen nothing. After smashing the window, my brain got free. Yeah, nowadays I live windowless. |
|
Back to top |
|
|
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
Posted: Mon Aug 08, 2005 12:14 pm Post subject: |
|
|
This is my smb.conf:
Quote: | localhost samba # cat smb.conf
[global]
workgroup = LOKALNO
netbios name = eleanor
encrypt passwords = yes
security = user
valid users = eleanor,root
[all]
comment = eleanor's root directory
path = /
force user = root
read only = no
create mask = 0766
browseable = yes
public = share
guest ok = yes
|
If I want to connect to my samba server it gives me the output:
Quote: | localhost samba # smbclient -L 192.168.1.3
read_socket_with_timeout: timeout read. read error = Connection reset by peer.
protocol negotiation failed |
|
|
Back to top |
|
|
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
Posted: Mon Aug 08, 2005 12:44 pm Post subject: |
|
|
Here is log /var/log/samba/log.smdb:
Quote: | BACKTRACE: 1 stack frames:
#0 /usr/sbin/smbd(smb_panic2+0x10f) [0x81c988f]
[2005/08/08 14:40:57, 0] tdb/tdbutil.c:tdb_log(725)
tdb(/var/cache/samba/ntforms.tdb): tdb_reopen: file dev/inode has changed!
[2005/08/08 14:40:57, 0] smbd/server.c:open_sockets_smbd(420)
tdb_reopen_all failed.
[2005/08/08 14:40:57, 0] lib/util.c:smb_panic2(1482)
PANIC: tdb_reopen_all failed.
[2005/08/08 14:40:57, 0] lib/util.c:smb_panic2(1490)
BACKTRACE: 1 stack frames:
|
|
|
Back to top |
|
|
svenk Tux's lil' helper
Joined: 04 Aug 2005 Posts: 97 Location: Germany
|
Posted: Mon Aug 08, 2005 1:09 pm Post subject: |
|
|
eleanor wrote: |
path = /
force user = root
read only = no
create mask = 0766
browseable = yes
public = share
guest ok = yes
|
* Do you have a "root"-account in your samba? (afaik you can't simply use the normal linux accounts)
* you write "force user = root" and later "guest ok = yes"... !?
Sven _________________ people said there would be nothing else other than gentoo. I agreed, looking through my window. For many years, I've seen nothing. After smashing the window, my brain got free. Yeah, nowadays I live windowless. |
|
Back to top |
|
|
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
Posted: Mon Aug 08, 2005 1:13 pm Post subject: |
|
|
I changed that in:
Quote: | localhost samba # cat smb.conf
[global]
workgroup = LOKALNO
netbios name = eleanor
encrypt passwords = yes
security = user
valid users = eleanor, root
[test]
path = /tmp
read only = no
browseable = yes
|
And I have root account and eleanor account! |
|
Back to top |
|
|
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
Posted: Mon Aug 08, 2005 3:09 pm Post subject: |
|
|
Now I set my sabma up. I still have printing problems over samba. I have printer on other computer (using windows) and I want to copy from this computer (using gentoo) to the other one. What to do? |
|
Back to top |
|
|
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
Posted: Mon Aug 08, 2005 3:28 pm Post subject: |
|
|
Look at this:
Quote: | localhost eleanor # smbclient -L *.*.*.*
Password:
Domain=[HP11766121773] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
Sharename Type Comment
--------- ---- -------
Tiskalnik Printer Microsoft Office Document Image Writer
IPC$ IPC Remote IPC
D$ Disk Default share
print$ Disk Printer Drivers
SharedDocs Disk
C Disk
ADMIN$ Disk Remote Admin
HP1300 Printer hp LaserJet 1300 PCL 6
C$ Disk Default share
|
So here we can find out that printer is on 192.168.1.4/HP1300.
If I do "smb://192.168.1.4/HP1300" in konqueror I get: An error occurred while loading smb://192.168.1.4/HP1300.
?? |
|
Back to top |
|
|
svenk Tux's lil' helper
Joined: 04 Aug 2005 Posts: 97 Location: Germany
|
Posted: Mon Aug 08, 2005 3:44 pm Post subject: |
|
|
eleanor wrote: | Now I set my sabma up. I still have printing problems over samba. I have printer on other computer (using windows) and I want to copy from this computer (using gentoo) to the other one. What to do? |
what do you want to copy? files?
Why not create a simple "shared folder" with writing rights to everyone? I think a folder like this is *always* a handy thing in a network:
Code: | [free]
comment = Free folder
path = /mnt/hda6/free folder/
read only = No
create mask = 0766
guest ok = Yes
|
no problem with rights - even win95-machines can write here...
sven _________________ people said there would be nothing else other than gentoo. I agreed, looking through my window. For many years, I've seen nothing. After smashing the window, my brain got free. Yeah, nowadays I live windowless. |
|
Back to top |
|
|
eleanor l33t
Joined: 01 Nov 2004 Posts: 666
|
Posted: Mon Aug 08, 2005 3:50 pm Post subject: |
|
|
I did that, but anyway. When I try to copy files on printer, it gives me that output:
Quote: | Printer State: idle, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds...foomatic-rip version $Revision: 3.43.2.6 $ running..."
Device URI: smb://HP11766121773/HP1300 |
What did I do wrong? |
|
Back to top |
|
|
svenk Tux's lil' helper
Joined: 04 Aug 2005 Posts: 97 Location: Germany
|
Posted: Mon Aug 08, 2005 4:34 pm Post subject: |
|
|
eleanor wrote: | I did that, but anyway. When I try to copy files on printer, it gives me that output:
Quote: | Printer State: idle, accepting jobs.
"Unable to connect to SAMBA host, will retry in 60 seconds...foomatic-rip version $Revision: 3.43.2.6 $ running..."
Device URI: smb://HP11766121773/HP1300 |
What did I do wrong? |
Oh, I suppose this is is *not* a samba-problem, but a problem of your cups/foomatic-installation, isn't it? _________________ people said there would be nothing else other than gentoo. I agreed, looking through my window. For many years, I've seen nothing. After smashing the window, my brain got free. Yeah, nowadays I live windowless. |
|
Back to top |
|
|
Maedhros Bodhisattva
Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Mon Aug 08, 2005 4:38 pm Post subject: |
|
|
Moved from Desktop Environments to Networking & Security. _________________ No-one's more important than the earthworm. |
|
Back to top |
|
|
|