+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
*nix Thread, Samba share in Technical; Ok i have an Ubuntu server that acts as my fileserver, it holds a few images on it and its ...
  1. #1
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Samba share

    Ok i have an Ubuntu server that acts as my fileserver, it holds a few images on it and its been working fine until recently. The share now says access denied so i was wondering how do i trouble shoot it.

  2. #2

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    Re: Samba share

    Check the logs in /var/log/samba?

  3. #3
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Samba share

    Good point... it says:

    [2007/07/13 11:30:12, 1] smbd/sesssetup.c:reply_spnego_kerberos(303)
    Username DomainName\ServerName$ is invalid on this system

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Samba share

    broken kerberos?

  5. #5
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Samba share

    It sounds it but how do i check?

    BTW WBINFO -U and -G works fine.

  6. #6

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Samba share


  7. #7
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Samba share

    Tried that and it works fine. Created a ticket fine.

  8. #8

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    Re: Samba share

    Have you restarted all samba and/or winbind?

  9. #9
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Samba share

    Yes the whole server was rebooted.

  10. #10
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Samba share

    Ok heres an update, i tried to chown the folder to reset the permissions and it wont let me. The following is the command that i used:

    Code:
    chown -R 'domainname\administrator:domainname\domain admins' /folder
    Error says invalid user.

  11. #11

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,400
    Thank Post
    636
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    319

    Re: Samba share

    If you have "winbind use default domain = yes" in your smb.conf you don't need to specify usernames in that format. Try just "administrator"; and then chgrp "domain admins" separately.

  12. #12
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Samba share

    Thanks for the responses.

    @webman: I didnt have that set so i decided i would give it a try and its well and truly messed up now. I tried to restart samba and winbind, i get this when i try:

    * Stopping Samba daemons... start-stop-daemon: warning: failed to kill 3691: Operation not permitted
    start-stop-daemon: warning: failed to kill 3693: Operation not permitted
    [ ok ]
    * Starting Samba daemons... install: cannot change owner and/or group of `/var/run/samba': Operation not permitted
    /etc/init.d/samba: line 25: 4031 Aborted start-stop-daemon --start --quiet --oknodo --exec /usr/sbin/smbd -- -D
    [fail]

    I left the machine shutdown over the weekend in the hopes that it was somehow related to the system overheating (unlikely i know but i was pretty frustrated), and it still has a problem with network users. It each time i try chown it says 'invalid user' so now im well stumped. Im beginning to think that i will need to reinstall it all, starting with ubuntu and install the rest from there. My only problem is that there is data on there that i want which at this stage im not entirely sure i can salvage, so is there a way to install ubuntu but retain the data(assuming no one can help me fix samba or winbind or ubuntu or whatever the hell is wrong with it).

  13. #13

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Samba share

    You need to be root to restart services.

  14. #14
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    41

    Re: Samba share

    I had root permissions and i restarted it fine before, its just decided to throw a barny now. So no one has any ideas on why it thinks network users are invalid? I read somewhere that if the nscd (i think its called that) service is running it would cause a problem but i dont think i have it and if i do, why did it not have a problem sooner. This is all very odd.

  15. #15

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Samba share

    Is nscd running or not then?

    Code:
    ps aux | grep nscd
    NSCD works by caching information. It takes a while to build up it's cache. Thus it takes a while to break samba.

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Samba Tip
    By Geoff in forum *nix
    Replies: 3
    Last Post: 28th November 2007, 02:23 PM
  2. Samba 4
    By FN-GM in forum *nix
    Replies: 8
    Last Post: 9th October 2007, 12:28 AM
  3. Samba Shares!
    By Mintsoft in forum *nix
    Replies: 9
    Last Post: 2nd October 2007, 12:05 PM
  4. Samba
    By Jackd in forum Wireless Networks
    Replies: 2
    Last Post: 28th June 2007, 06:25 AM
  5. Samba (the joy of)
    By ZeroHour in forum *nix
    Replies: 1
    Last Post: 23rd January 2007, 12:21 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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