LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-02-2009, 11:08 PM   #1
Hanse42
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Rep: Reputation: 0
printer sharing


P4, 1.8Hz, 1gb ram, Ubuntu 8.10, dual boot, DNS-321 NAS, 2 hard drives.

I somehow managed mounting my networkdrive thru CIFS, I believe, as nautilus was acting erratically. However, now I cannot access my ubuntu computer from my windows computer. This sucks because my ubuntu computer makes its printer available.
also, whenever I click on 'windows networks' in nautilus I get the message 'Unable to mount location. Failed to retrieve share list from server.' so something must be wrong with my permissions or smb.conf???

thanks for your consideration.

Here is my fstab:
proc /proc proc defaults 0 0
UUID=98d36329-a1d1-42a3-b9b2-62611b9e57be / ext3 relatime,errors=remount-ro 0 1
UUID=17c38710-f34c-4e1e-94de-abe4422debac /home ext3 relatime 0 2
UUID=2d6553f0-5077-4c2f-9079-8713448086eb none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/sda1 /media/Windows ntfs-3g defaults,locale=en_US.UTF-8 0 2
UUID="e8268b32-f7ae-4c54-a765-93acc00ab440" /media/Xtra\040Drive ext2 defaults 0 0
//192.168.1.2/Volume_1 /media/Large\040External\040Drive cifs password=[hidden],_netdev, 0 0



And here is my smb (I deleted everything with a # and ; at the beginning):
[global]
workgroup = Peter
server string = %h server (Samba, Ubuntu)
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
obey pam restrictions = yes
unix password sync = yes
load printers = yes
usershare allow guests = yes
wins support = no
[printers]
comment = All Printers
browseable = yes
path = /var/spool/samba
printable = yes
guest ok = yes
read only = yes
create mask = 0700
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = yes
[peter]
path = /home/peter
available = yes
browsable = yes
public = yes
writable = yes
 
Old 03-03-2009, 08:33 AM   #2
cloud9repo
Member
 
Registered: Oct 2008
Location: Middle TN
Posts: 134

Rep: Reputation: 19
Try a network repair. On your Windows Box, right-click "Networks", and select repair. On the Linux System, with Synaptic, Re-install "Samba".

You might want to totally remove samba in a terminal via:
sudo apt-get remove --purge samba,
then run:
sudo apt-get install samba.

Might work...
 
Old 03-03-2009, 12:18 PM   #3
Hanse42
LQ Newbie
 
Registered: Feb 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Thanks, cloud9repo. I did the reinstallation and the network repair, but I keep having the same problem.

Particularly, when I click on "Windows Network" in Nautilus, I should at least see my own computer, right? But it says: 'Unable to mount location. Failed to retrieve share list from server.'

Do you have any other suggestion?

I think there is something wrong with my smb.conf. Termparm works, but e.g. smbclient -l Peter says bad network name.


Also, I got following error during this test:
peter@peter-desktop:~$ nmblookup -d 2 "*"
added interface eth1 ip=fe80::240:f4ff:fe49:7f34%eth1 bcast=fe80::ffff:ffff:ffff:ffff%eth1 netmask=ffff:ffff:ffff:ffff::
added interface eth1 ip=192.168.1.3 bcast=192.168.1.255 netmask=255.255.255.0
querying * on 192.168.1.255
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
tdb(unnamed): tdb_open_ex: could not open file /var/run/samba/unexpected.tdb: No such file or directory
name_query failed to find name *

Last edited by Hanse42; 03-03-2009 at 05:21 PM.
 
Old 03-07-2009, 12:05 PM   #4
seano57
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
Nothing you did wrong, the latest update broke samba - https://bugs.launchpad.net/ubuntu/+s...fs/+bug/320547

only workaround at the moment is to roll back gvfs which will also take a bunch of other stuff back with it because of dependancies so may or may not be acceptable for you.

--sean
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on Printer / printer sharing on Linux Debian tritako Debian 6 10-02-2008 11:29 AM
sharing printer kalebud Linux - Newbie 2 06-10-2007 10:11 AM
Printer-sharing with FreeBSD; cannot se icon for the printer hemmelig *BSD 7 05-13-2005 04:44 PM
how to get primary logon network, Access control,File sharing & printer sharing info dileepkk Linux - Networking 2 07-06-2004 07:54 AM
Sharing a printer rhraz Linux - Newbie 2 02-15-2004 12:19 PM


All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration