Fedora Linux Support Community & Resources Center
  #16  
Old 13th August 2012, 08:12 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

Code:
sudo setenforce 0

[sudo] password for jn: 

[jn@qServer Ns]$ pdbedit -L

tdbsam_open: Failed to open/create TDB passwd [/var/lib/samba/private/passdb.tdb]
tdbsam_getsampwnam: failed to open /var/lib/samba/private/passdb.tdb!
User Search failed!

[jn@qServer Ns]$ smbclient -L 127.0.0.1 -U jn
Enter jn's password: 


Domain=[Q] OS=[Unix] Server=[Samba 3.6.6-92.fc17]

	Sharename       Type      Comment
	---------       ----      -------
	QF   Disk      The Brain
	IPC$            IPC       IPC Service (Fed Server Version 3.6.6-92.fc17)

	R3000 Printer   R3000

	jn        Disk      Home Directories
Domain=[Q] OS=[Unix] Server=[Samba 3.6.6-92.fc17]

	Server               Comment
	---------            -------
	QSERVER              Fed Server Version 3.6.6-92.fc17
	RECEPTION            

	Workgroup            Master
	---------            -------
	Q              RECEPTION
Reply With Quote
  #17  
Old 13th August 2012, 08:37 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,283
netbsdmozilla
Re: Samba Issue!

Quote:
Originally Posted by L3l00 View Post
Code:
sudo setenforce 0

[sudo] password for jn: 

[jn@qServer Ns]$ pdbedit -L

tdbsam_open: Failed to open/create TDB passwd [/var/lib/samba/private/passdb.tdb]
tdbsam_getsampwnam: failed to open /var/lib/samba/private/passdb.tdb!
User Search failed!

[jn@qServer Ns]$ smbclient -L 127.0.0.1 -U jn
Enter jn's password: 


Domain=[Q] OS=[Unix] Server=[Samba 3.6.6-92.fc17]

	Sharename       Type      Comment
	---------       ----      -------
	QF   Disk      The Brain
	IPC$            IPC       IPC Service (Fed Server Version 3.6.6-92.fc17)

	R3000 Printer   R3000

	jn        Disk      Home Directories
Domain=[Q] OS=[Unix] Server=[Samba 3.6.6-92.fc17]

	Server               Comment
	---------            -------
	QSERVER              Fed Server Version 3.6.6-92.fc17
	RECEPTION            

	Workgroup            Master
	---------            -------
	Q              RECEPTION
You sling sudo commands around so pdbedit -L failed (ran as regular, unprivileged user). However I see jn's home directory listed so that user clearly has successfully logged it. To be sure

I'm assuming you're tapping on QSERVER. Paste the output of:
smbclient //QSERVER/jn -I 127.0.0.1 -U jn
ls
exit
Reply With Quote
  #18  
Old 13th August 2012, 08:43 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

Code:
# pdbedit -L
[root@qServer Ns]# smbclient //QSERVER/jn -l 127.0.0.1 -U jn

[2012/08/13 13:41:21,  0] ../lib/util/debug.c:571(reopen_logs_internal)

  Unable to open new log file '127.0.0.1/log.smbclient': No such file or directory

Enter jn's password: 
[2012/08/13 13:41:36,  0] libsmb/clidfs.c:227(do_connect)
  Domain=[Q] OS=[Unix] Server=[Samba 3.6.6-92.fc17]
smb: \> ls
  .                                   D        0  Mon Aug 13 13:40:43 2012
  ..                                  D        0  Wed Aug  1 11:19:16 2012
  .googleearth                       DH        0  Mon Jun 11 14:37:00 2012
  .spice-vdagent                     DH        0  Mon Jun  4 12:49:47 2012
  .VirtualBox                        DH        0  Fri Jul  6 13:45:14 2012
  .ssh                               DH        0  Mon Jul  9 11:18:37 2012
  Public                              D        0  Mon Jun  4 12:49:47 2012
  .grl-podcasts                       H     4096  Mon Jun 11 13:56:27 2012
  .setroubleshoot                     H       21  Mon Jun 11 12:02:49 2012
  Crontab                                     32  Thu Jul  5 12:41:27 2012
  .thumbnails                        DH        0  Mon Jun  4 14:26:22 2012
  Videos                              D        0  Mon Jun  4 12:49:47 2012
  sudo                                         0  Thu Jul  5 12:40:27 2012
  .mission-control                   DH        0  Mon Jun  4 12:49:58 2012
  nano                                         0  Thu Jul  5 12:41:00 2012
  .gstreamer-0.10                    DH        0  Wed Aug  1 11:33:08 2012
  .adobe                             DH        0  Thu Jun 28 10:38:32 2012
  .macromedia                        DH        0  Thu Jun 28 10:38:32 2012
  .bash_history                       H    22062  Mon Aug 13 13:40:43 2012
  VirtualBox VMs                      D        0  Mon Jun 25 14:02:36 2012
  Downloads                           D        0  Fri Jun 29 10:31:00 2012
  PlayOnLinux's virtual drives        D        0  Mon Jun 11 11:54:23 2012
  .pulse-cookie                       H      256  Mon Jun  4 12:49:47 2012
  .grl-bookmarks                      H     3072  Mon Jun 11 13:56:27 2012
  .bashrc                             H      124  Mon Apr 23 08:06:52 2012
  Documents                           D        0  Wed Aug  1 11:11:47 2012
  .wine                              DH        0  Fri Aug  3 11:31:10 2012
  .gnupg                             DH        0  Mon Jun  4 16:24:48 2012
  .TrueCrypt                         DH        0  Fri Jun  8 10:36:03 2012
  .abrt                              DH        0  Mon Jun 11 11:46:44 2012
  .TaskCoach                         DH        0  Mon Jun 25 14:18:38 2012
  .gimp-2.8                          DH        0  Fri Aug  3 11:45:25 2012
  .mozilla                           DH        0  Mon Jun  4 13:01:28 2012
  .gnome2                            DH        0  Mon Jun 25 13:43:17 2012
  .xsession-errors.old                H     5220  Fri Aug 10 13:34:40 2012
  .opera                             DH        0  Wed Aug  8 13:56:03 2012
  .java                              DH        0  Fri Aug  3 12:37:06 2012
  Desktop                             D        0  Fri Aug  3 11:46:09 2012
  with                                         0  Thu Jul  5 12:41:00 2012
  Music                               D        0  Mon Jun  4 12:49:47 2012
  .kde                               DH        0  Mon Jun 25 11:49:35 2012
  .gconf                             DH        0  Fri Aug 10 15:53:17 2012
  .ICEauthority                       H    14594  Fri Aug 10 15:53:11 2012
  .openproj                          DH        0  Fri Aug  3 12:37:05 2012
  .gtk-bookmarks                      H      152  Fri Aug 10 15:53:15 2012
  .pulse                             DH        0  Mon Jun  4 12:49:53 2012
  .bash_logout                        H       18  Mon Apr 23 08:06:52 2012
  -p                                        3000  Mon Jun 18 15:07:25 2012
  .dbus                              DH        0  Mon Jun  4 12:49:45 2012
  .pki                               DH        0  Thu Jun 28 10:49:07 2012
  .bash_profile                       H      193  Mon Apr 23 08:06:52 2012
  Templates                           D        0  Mon Jun  4 12:49:47 2012
  .esd_auth                           H       16  Mon Jun  4 12:49:48 2012
  Pictures                            D        0  Fri Jul  6 11:40:23 2012
  .grl-metadata-store                 H     2048  Mon Jun 11 13:56:28 2012
  .liferea_1.8                       DH        0  Fri Jul  6 11:29:59 2012
  .xsession-errors                    H     7191  Fri Aug 10 15:55:30 2012
  .gnome2_private                    DH        0  Mon Jun 18 11:53:21 2012
  .local                             DH        0  Mon Jun  4 12:49:49 2012
  .fontconfig                        DH        0  Fri Aug  3 11:43:09 2012
  .shotwell                          DH        0  Fri Jul 13 12:47:05 2012
  .PlayOnLinux                       DH        0  Mon Jun 11 11:58:32 2012
  .cache                             DH        0  Fri Aug  3 11:43:04 2012
  .shutter                           DH        0  Mon Jun 11 15:13:03 2012
  .config                            DH        0  Fri Aug  3 11:58:15 2012
  .imsettings.log                     H     2386  Fri Aug 10 15:55:29 2012
  .fotoxx                            DH        0  Fri Aug  3 11:33:31 2012

		44955 blocks of size 4194304. 37447 blocks available
Reply With Quote
  #19  
Old 13th August 2012, 08:49 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,283
netbsdmozilla
Re: Samba Issue!

Ok. So jn can log in... Back on ?? post you were referring to mounting QF and not the homes directory?

Lets try QF

Paste the output of:
smbclient //QSERVER/QF -l 127.0.0.1 -U jn
ls
exit
Reply With Quote
  #20  
Old 13th August 2012, 09:16 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

I got an error, I looked inside my system-config-samba and all the user names were deleted? I added a few but still same error:

Code:
smbclient //QSERVER/QF -l 127.0.0.1 -U jn

[2012/08/13 13:56:36,  0] ../lib/util/debug.c:571(reopen_logs_internal)

  Unable to open new log file '127.0.0.1/log.smbclient': Permission denied
session setup failed: NT_STATUS_LOGON_FAILURE
Not sure if this helps too but:

Code:
$ getsebool -a | grep samba
samba_create_home_dirs --> on
samba_domain_controller --> on
samba_enable_home_dirs --> on
samba_export_all_ro --> on
samba_export_all_rw --> on
samba_portmapper --> on
samba_run_unconfined --> on
samba_share_fusefs --> on
samba_share_nfs --> on
sanlock_use_samba --> on
use_samba_home_dirs --> on
virt_use_samba --> on


---------- Post added at 02:16 PM ---------- Previous post was at 01:57 PM ----------

this is very bothersome. What is strange, everyone in the office can access the files no problem. There is a Vista that I recently did a fresh install on. I cannot use any username or password for it. So it is stuck not connecting to the server. My boss cannot either!

On the server itself, if I go to the GUI network folder. I have to click on Windows Network. Click on Q and it stalls eventually telling me it cannot mount.
Reply With Quote
  #21  
Old 13th August 2012, 09:17 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,283
netbsdmozilla
Re: Samba Issue!

Ok.. So you're using system-config-samba to add users. That should force you to also select a system user. Step back and check tdbsam.


Paste the output of:
su
pdbedit -L
exit
Reply With Quote
  #22  
Old 13th August 2012, 09:19 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

Code:
# pdbedit -L

jn:1000:jn
ta:1001:ta
qn:1002:qn
Reply With Quote
  #23  
Old 13th August 2012, 09:25 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,283
netbsdmozilla
Re: Samba Issue!

Ok. So you know they're there. Congrats, security is also in the filesystem.

paste the output of:
su
ls -l /home/queston/Desktop/
exit

I'm only really interested in Queston Files.
Reply With Quote
  #24  
Old 13th August 2012, 09:31 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

drwxrwxr-x. 14 qn qn 4096 Jul 18 14:22 Q F
Reply With Quote
  #25  
Old 13th August 2012, 09:37 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,283
windows_7firefox
Re: Samba Issue!

Quote:
Originally Posted by L3l00 View Post
drwxrwxr-x. 14 qn qn 4096 Jul 18 14:22 Q F
from smb.conf
Quote:
[QF]
comment = The Brain
path = /home/queston/Desktop/Queston Files
read only = no
browseable = yes
valid users = jn, qb, qn, rs, ta @Q
your path points to a non-existent directory. Your choice how to correct it; rename the directory or correct the path within smb.conf.
Reply With Quote
  #26  
Old 13th August 2012, 09:40 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

Q F is Queston Files

when I do the testparm
browseable doesn't show

---------- Post added at 02:40 PM ---------- Previous post was at 02:38 PM ----------

It is targeting the right file, I used system-config-samba to point to the folder
Reply With Quote
  #27  
Old 13th August 2012, 09:52 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,283
windows_7firefox
Re: Samba Issue!

Logically, I'm sure that is true. However the 8th column spells the directory name "Q A" which is not used in smb.conf.

---------- Post added at 05:52 PM ---------- Previous post was at 05:49 PM ----------

Double check

Paste the output of:
su
cd /home/queston/Desktop/"Queston Files"
pwd
ls
cd /home/queston/Desktop/"Q F"
pwd
ls
exit
Reply With Quote
  #28  
Old 13th August 2012, 09:55 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

It is accurate, I changed the post to Q F on this forum. It is targeting Queston Files on the server it does say Queston Files.
Reply With Quote
  #29  
Old 13th August 2012, 09:59 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,283
windows_7firefox
Re: Samba Issue!

Then paste the output of

testparms
ls -l /home/queston/Desktop/

Don't edit them.
Reply With Quote
  #30  
Old 13th August 2012, 10:05 PM
L3l00 Online
Registered User
 
Join Date: Oct 2011
Location: New Mexico
Age: 25
Posts: 99
linuxopera
Re: Samba Issue!

Code:
# testparm
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 "[Queston Files]"
Loaded services file OK.
WARNING: You have some share names that are longer than 12 characters.
These may not be accessible to some older clients.
(Eg. Windows9x, WindowsMe, and smbclient prior to Samba 3.0.)
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

[global]
	workgroup = QUESTON
	server string = Fed Server Version %v
	log file = /var/log/samba/log.%m
	max log size = 50
	wins support = Yes
	idmap config * : backend = tdb
	cups options = raw

[homes]
	comment = Home Directories
	read only = No
	browseable = No

[printers]
	comment = All Printers
	path = /var/spool/samba
	printable = Yes
	print ok = Yes
	browseable = No

[Queston Files]
	comment = The Brain
	path = /home/queston/Desktop/Queston Files
	valid users = jn, qn, ta
	read only = No
[root@qServer Queston Files]# ls -l /home/queston/Desktop/
total 4
drwxrwxr-x. 14 queston queston 4096 Jul 18 14:22 Queston Files
[root@qServer Queston Files]#


---------- Post added at 03:05 PM ---------- Previous post was at 03:02 PM ----------

!?!?!?!?!?!?!?!??!?

I have no idea what happened. I tested and failed mount twice before I did the last post!?!?!?

NOW it decides to work!?!?!??!?!?!?
Reply With Quote
Reply

Tags
samba

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with Samba biggsk Servers & Networking 1 31st August 2007 09:31 AM
Samba Issue with XP North323 Servers & Networking 3 14th December 2006 11:39 PM
Another SAMBA issue... organica Servers & Networking 3 30th September 2006 08:26 PM
Samba issue caste Servers & Networking 1 23rd March 2006 06:38 PM
Issue with Samba czimmerman Servers & Networking 7 5th June 2005 11:18 PM


Current GMT-time: 20:56 (Sunday, 20-04-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat