samba, user permission problem

Booting, installing, newbie
Post Reply
Message
Author
gjhicks
Posts: 5
Joined: Mon 20 Jun 2005, 23:40
Location: World's Most Liveable City

samba, user permission problem

#1 Post by gjhicks »

Hi,

Am using HD installed 2.02 puppy to run a server in my house, with between 5 and 8 connected PCs, all running Win98Se or WinXP.

In another distro, I got a samba network working fine, using the linux server for file storage and sharing.

To connect WinXP users to such a samba network, particularly to allow a server-based print spooler to function, 'security = user' needs to be used. Thus, each WinXP user gets a corresponding linux and samb user, with passwords set to the WinXP password.

But there is a problem in puppy - I think due to the root/single user setup of puppy. The samba shares are accessible but read only. Below are the various files in use on the server:

/etc/passwd
------------
root:x:0:0:root:/root:/bin/sh
daemon:x:1:1::/:
nobody:x:65534:65534::/tmp:
spot:x:502:502:Linux User,,,:/root/spot:/bin/sh
bin:x:2:2:bin:/bin:
sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:sbin/nologin
geoff:x:503:503:Linux User,,,:/home/geoff:/bin/sh
sarah:x:504:504:Linux User,,,:/home/sarah:/bin/sh

/etc/samba/private/smbpasswd
-----------------------------

root:0:AAD3B435B51404EEAAD3B435B51404EE:31D6CFE0D16AE931B73C59D7E0C089C0::LCT-44D13EC3:
geoff:503:7EA40AB902376821AAD3B435B51404EE:7A8B397C30F7E6A85B00C1A0C66986AC::LCT-44D2D972:
sarah:504:5E93BE2FA476959FAAD3B435B51404EE:AB7EEAF33BC48E79A83122C9EC222A58::LCT-44D2D9CA:
nobody:65534:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[DU ]:LCT-00000000:

/etc/samba/smb.conf
--------------------
[global]
workgroup = STANDRIES
server string = Puppy-Server
interfaces = 192.168.1.1/24 127.0.0.1/24
bind interfaces only = yes
hosts allow = 192.168.1. 127.
hosts deny = 0.0.0.0/0
wins support = yes
security = share
encrypt passwords = yes

[scratch]
comment = Server Scratch Area
path = /mnt/hda7/scratch
browseable = yes
read only = no
guest ok = yes
nt acl support = no

smbstatus
----------
Samba version 3.0.21c
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------
scratch 2877 192.168.1.5 Fri Aug 4 20:32:42 2006

Locked files:
Pid DenyMode Access R/W Oplock SharePath Name
----------------------------------------------------------------------------------------
2877 DENY_NONE 0x100001 RDONLY NONE /mnt/hda7/scratch . Fri Aug 4 20:32:42 2006


smbclient -NL DSLSERVER
----------------------------------
Sharename Type Comment
--------- ---- -------
scratch Disk Server Scratch Area
IPC$ IPC IPC Service (Puppy-Server)
ADMIN$ IPC IPC Service (Puppy-Server)

Server Comment
--------- -------
DSLSERVER Puppy-Server
SARAH-XP Sarah's new PC

Workgroup Master
--------- -------
STANDRIES SARAH-XP

----------------------------------------------------------------------------------------

The /mnt/hda7/scratch area is fat32 formatted and, in an attempt to solve this, I tried to set the permissions on the "scratch" area to '777' but could not change them - I guess because it was fat32?

So, is there a way to set up the extra users in puppy, so that they have "root-like" rights?

Given that puppy is such a great distro, I would really like to figure this out.

Regards,

Geoff.

Post Reply