16

$(subj), it appears to be what root user is denied by default for all of the shares. I'm trying to reproduce Windows administrative share.

user539484
  • 261
  • 1
  • 2
  • 5

3 Answers3

23

Do you have a password set in Samba (not in the system passwd file) for root ? You should be able to set such a password by running smbpasswd -a root.

jelmer
  • 395
  • 1
  • 8
11

You should be putting up your smb.conf so that we can actually assess the problem. Anyway here's a hint:

   invalid users = root

is part of the default smb.conf.

Well then. Is root a valid smbuser, yet? Then try explicitly allowing root :

valid users = root 

And try something like this:

[config]
    comment = Admin Config Share  - Whatever
    path = /
    valid users = someusers, somegroup
    force user = root
    force group = root
    admin users = someusers, somegroup   
    writeable = Yes
juwi
  • 573
  • 5
  • 14
  • Does it have to be explicitly specified option or implicitly assumed? My `smb.conf` isnt "from-scratch" and does not contain any `valid users` or `invalid users` parameters at all. – user539484 Mar 10 '12 at 16:24
  • Hmm, also, according to [doc](http://www.samba.org/samba/docs/man/manpages-3/smb.conf.5.html#INVALIDUSERS) there is no invalid users by default. – user539484 Mar 10 '12 at 16:46
  • See edited post. – juwi Mar 10 '12 at 16:58
1

if you can't access two users, one for a regular user and the other for a root, you need to alias the netbios in smb.conf file so that windows sees them as two servers. Then access each with a different user id. You may also add to the windows' host file the same server's ip with different names. The issue is with Windows that can only allow one user at a time, thus cannot access as a root.

user300130
  • 11
  • 1