[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: samba setup tips?



David Clymer said:
> Please remember to reply to the list, not to the individual. I
> will reply on-list so that everyone can (hopefully) benefit
> from our exchange.

Sorry about that.

> On Tue, 2005-07-12 at 08:42 -0500, Josh Battles wrote:
>> David Clymer said:
>>
>> > When you say that you can't log on, do you mean that your
>> > username/password is rejected, or that you just dont see any shared
>> > folders? What error messages are you getting on the clients when they
>> > attempt to "log on"?
>>
>> My username and password is rejected.  My Debian desktop picked up almost
>> instantly a folder called "shared on beer" (beer is the server hostname)
>> and
>> popped it on the desktop when I booted.  I'm able to see that same folder
>> in
>> Win2k but not access it from either OS.
>
> For each computer (NT,2k,XP) that logs on to your domain, you will need to
> have set up a trust account:
>
> $ adduser --home /dev/null --shell /bin/false --ingroup machine
> --force-badname --no-create-home --disabled-login --gecos "Machine Trust
> Account" MYCOMPUTER$
> $ smbpasswd -m -a MYCOMPUTER

So, if I'm going to add a user called "cletusjones" to my box called "beer"
it would go something like this:

adduser cletusjones --home /dev/null --shell /bin/false --ingroup machine
--force-badname --no-create-home --disables-login --gecos "Machine Trust
Account" BEER

and:

smbpasswd ****** -m -a BEER

correct?

> for each user that logs on or accesses shares, you need to have a unix and
> samba account:
>
> $ adduser --shell /bin/false --disabled-login userbob
> $ gpasswd -a userbob samba
> $ smbpasswd -a userbob

For these statements, I'm replacing "userbob" with my usernames and that
should just be it, yes?


-- 
- Josh
www.omg-stfu.com



Reply to: