Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi I have configured Samba in My Ubuntu machine but when i connect to it from windows machine i dont have access to it.When i open it it says i ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    14

    Does not have access to Samba.

    Hi

    I have configured Samba in My Ubuntu machine but when i connect to it from windows machine i dont have access to it.When i open it it says i dont have permision,

    Can anyone help please.I have tried everything but no luck
    Last edited by Lindelani; 03-14-2011 at 12:59 PM.

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    can you post configuration file?

    I don't know what type of security settings you are using, if you have user level security you will need to add samba user using smbpasswd command

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    14
    Hi

    I have tried to run the command but get the error messages below

    lindelani@ubuntu:~$ smbpasswd
    Old SMB password:
    New SMB password:
    Retype new SMB password:
    cli_pipe_validate_current_pdu: RPC fault code DCERPC_FAULT_OP_RNG_ERROR received from host 127.0.0.1!
    machine 127.0.0.1 rejected the password change: Error was : NT code 0x1c010002.
    lindelani@ubuntu:~$

    i

  4. #4
    Just Joined!
    Join Date
    Mar 2011
    Posts
    14
    Below is my Samba Config

    [global]
    ; General server settings
    netbios name = lindelani
    server string =
    workgroup =EASYPLAN-BRANCH
    announce version = 5.0
    socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192

    passdb backend = tdbsam
    security = share
    null passwords = true
    username map = /etc/samba/smbusers
    name resolve order = hosts wins bcast

    wins support = no

    printing = CUPS
    printcap name = CUPS

    syslog = 1
    syslog only = yes

    ; NOTE: If you need access to the user home directories uncomment the
    ; lines below and adjust the settings to your hearts content.
    ;[homes]
    ;valid users = %S
    ;create mode = 0600
    ;directory mode = 0755
    ;browseable = no
    ;read only = no
    ;veto files = /*.{*}/.*/mail/bin/

    ; NOTE: Only needed if you run samba as a primary domain controller.
    ; Not needed as this config doesn't cover that matter.
    ;[netlogon]
    ;path = /var/lib/samba/netlogon
    ;admin users = Administrator
    ;valid users = %U
    ;read only = no

    ; NOTE: Again - only needed if you're running a primary domain controller.
    ;[Profiles]
    ;path = /var/lib/samba/profiles
    ;valid users = %U
    ;create mode = 0600
    ;directory mode = 0700
    ;writeable = yes
    ;browseable = no

    ; NOTE: Inside this place you may build a printer driver repository for
    ; Windows - I'll cover this topic in another HOWTO.
    [print$]
    path = /var/lib/samba/printers
    browseable = yes
    guest ok = yes
    read only = yes
    write list = root
    create mask = 0664
    directory mask = 0775

    [printers]
    path = /tmp
    printable = yes
    guest ok = yes
    browseable = yes

    ; Uncomment if you need to share your CD-/DVD-ROM Drive
    ;[DVD-ROM Drive]
    ;path = /media/cdrom
    ;browseable = yes
    ;read only = yes
    ;guest ok = yes

    [Linux]
    path = /media/windows
    valid user = lindelani
    available = yes
    writable = yes
    browseable = yes
    read only = yes
    guest ok = yes
    create mask = 0644
    directory mask = 0755
    force user = lindelani
    force group = lindelani

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    i did a little googling

    is the share located on NTFS partition? that seems to be causing some problems
    http://www.google.com/url?sa=t&sourc...8kCi0g&cad=rja

  6. #6
    Just Joined!
    Join Date
    Mar 2011
    Posts
    14
    The share is on my ubuntu machine.

  7. #7
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    but are you sharing an ntfs partition on the ubuntu machine?

  8. #8
    Just Joined!
    Join Date
    Mar 2011
    Posts
    14
    I have dual boot so i dont know exactly where my sharing fili is located,But i think is in NTFS partition.Can you help please

  9. #9
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    can you make a share on an ext2/3/4 partition and see if you can connect to that? that way we can rule out the ntfs share being the problem

    make sure you comment out the other share and restart samba

  10. #10
    Just Joined!
    Join Date
    Mar 2011
    Posts
    14
    How do i do this

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...