LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2010, 02:50 PM   #1
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
running smbclient from root account doesn't work


I reinstalled Slackware lastnight and was configuring Samba today and when I tested the config (I had just copied over my working smb.conf) I kept getting an NT_LOGON error when I run
PHP Code:
smbclient -l MYSERVER 
from the root account after entering root's password.

I can log in through konqueror if I pass the credentials of the only user defined in smb.conf after I'd run smbpasswd for that user, and if I bring up a full terminal session for that user smbclient works fine, but it seems odd that root can't access the shares on the machine. I may have just never noticed this before because I usually test from a user account, but is this normal since I specifically only define one user where samba is concerned?

I'm mainly asking because I was getting some unexpected write errors last night while I was installing the multilib libraries for Slack64 as root and I'm trying to verify everything.
 
Old 01-03-2010, 12:25 AM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 638
Blog Entries: 1

Rep: Reputation: 52
What does your smb.conf file look like?
 
Old 01-03-2010, 11:39 AM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949

Original Poster
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
This is smb.conf with all the comments and printer specific lines removed.

PHP Code:
[global]
    
workgroup workgroup
    netbios name 
dtest
    server string 
Samba Server %v
    printcap cache time 
6
    printing 
cups
    hosts allow 
192.168.1127.
    security 
user

[DATA]
    
path = /mnt/data/
    
comment DATA
    browseable 
yes
    writable 
yes
    admin users 
dtest
    valid users 
dtest
    inherit permissions 
yes
    username 
dtest
    hosts allow 
192.168.1.101 192.168.1.102 192.168.1.104 DLIN DTEST DELL 
My real question is even thought root is never defined for samba, is it normal for root to be denied access to the samba shares?
 
  


Reply



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
smbclient command allowing only root? avinash.rao Ubuntu 6 08-02-2009 07:36 AM
Why is my common account can't open Terminal in XFCE4 but root account? notsay Slackware 4 08-18-2007 11:29 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
'smbclient -M' does not work!? Ygrex Linux - Networking 0 11-10-2005 07:11 PM
'smbclient -M somebody' does not work Ygrex Linux - Networking 2 11-02-2005 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:43 AM.

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
Open Source Consulting | Domain Registration