LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   ubuntu 10.04 samba one share two users (https://www.linuxquestions.org/questions/ubuntu-63/ubuntu-10-04-samba-one-share-two-users-4175437796/)

kleinde66 11-19-2012 08:15 AM

ubuntu 10.04 samba one share two users
 
hi
i have a computer that i have install quite a bit on:
ubuntu 10.04 desktop (computer name t5026)
set ip to static
samba
wakeonlaN
openssh-server
ethtool
x11vnc

mounted a second hard drive fstab:
/dev/sdb1 /media/st1 ext4 rw,suid,dev,exec,auto,user,async 0 0

klein@t5026:/media$ ls -l
drwx------ 6 klein klein 4096 2012-11-17 12:33 st1

klein@t5026:/media/st1$ ls -l
drwxr-xr-x 4 klein klein 12288 2012-11-18 21:47 old computer


in ubuntu there are two users created klein,beth
i have done as i always do:

sudo smbpasswd -a klein

i'm on a local network at home and i use the same passwd for samba as
well as my ubuntu login

everything works as expected the problem comes when i try to add beth to samba first i did:
sudo smbpasswd -a beth
my passwd
her passwd
her passwd

sudo smbpasswd -e beth
my passwd
beth added

then i added her to the valid user:
valid users = beth, klein

after rebooting from another ubuntu 10.04 computer i can browse to places > network > t5026 > old computer find and open it but if i try to login and browse using beth it says failed to mount window share

from t5026 i did testparm and the only problem it had was:

rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)

service definitions





PHP Code:

[global]
    
server string = %h server (SambaUbuntu)
    
map to guest Bad User
    obey pam restrictions 
Yes
    pam password change 
Yes
    passwd program 
= /usr/bin/passwd %u
    passwd chat 
= *Enter\snew\s*\spassword:* %n\*Retype\snew\s*\spassword:* %n\*password\supdated\ssuccessfully* .
    
unix password sync Yes
    syslog 
0
    log file 
= /var/log/samba/log.%m
    max log size 
1000
    dns proxy 
No
    usershare allow guests 
Yes
    panic action 
= /usr/share/samba/panic-action %d

[printers]
    
comment All Printers
    path 
= /var/spool/samba
    create mask 
0700
    printable 
Yes
    browseable 
No
    browsable 
No

[print$]
    
comment Printer Drivers
    path 
= /var/lib/samba/printers

[old computer]
    
comment old files
    path 
= /media/st1/old_computer
    valid users 
bethklein
    read only 
No 


did i add her to samba correctly?
is the permission of media, st1,old computer the problem they are all klein:klein do i need to change this?
i just can't seem to find the problem


All times are GMT -5. The time now is 12:06 PM.