Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 24

Thread: Help with multiple Samba fileservers on network

  1. #11
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by hollywoodpete View Post
    [ls -al /media/sdc1]
    total 36
    drwx------ 6 movieman movieman 4096 Jul 7 23:36 .
    drwxr-xr-x 6 root root 4096 Dec 12 07:00 ..
    drwxrwxr-x 2 movieman movieman 4096 Jul 13 17:36 Downloads
    drwx------ 2 root root 16384 Jun 24 22:17 lost+found
    drwx------ 5 movieman movieman 4096 Jul 6 19:53 .Trash-1000
    drwxrwxrwx 34 movieman movieman 4096 Dec 8 22:00 TV
    What I was referring to is that every directory in the path must have an executable bit set for you as a user or as either group that you are a member of, or as a last resort the entity called others.

    If you wish to check a directory specifically (e.g. /media/sdc1) then you chould use this
    Code:
    ls -ld /media/sdc1
    FYI -- This information is implied with the directory . (dot), which is the current working directory (CWD). It shows that the CWD is only available to the user movieman (no group or other permissions).

    Are you the user movieman? Do you have a Samba user named movieman? You have restricted the directories (and the files?) to that user only. If you do that you need to authenticate as that user in Samba. The underlying Linux permissions trump Samba rights at all times.

    I don't think we know the whole story here. Enlighten us please as to why you have changed this directories permissions for this share.

    We need to know the user and the Samba user. Do you have any other users that will need to access the share? Remember that some applications create their own system user that will need to access the directory also.

    You are not alone as a user on the machine. To see all the users try this command from the terminal
    Code:
    getent passwd

  2. #12
    Join Date
    May 2010
    Beans
    78

    Re: Help with multiple Samba fileservers on network

    I am the only user of the computer. I have root access. To the best of my knowledge I have not restricted the files to movieman and if I have, I would like to know how to remove that restriction.

  3. #13
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by hollywoodpete View Post
    I am the only user of the computer. I have root access. To the best of my knowledge I have not restricted the files to movieman and if I have, I would like to know how to remove that restriction.
    I'm not referring to you the human being. When I use the term user in this context, I'm referring to either a logged in user (name) or a system user that does not log in, but that is spawned by an application.

    What is you login name (the username)? If you are not the user movieman, I wonder what application did this

    Code:
    [ls -al /media/sdc1
    total 36
    drwx------ 6 movieman movieman 4096 Jul 7 23:36 .
    drwxr-xr-x 6 root root 4096 Dec 12 07:00 ..
    drwxrwxr-x 2 movieman movieman 4096 Jul 13 17:36 Downloads
    drwx------ 2 root root 16384 Jun 24 22:17 lost+found
    drwx------ 5 movieman movieman 4096 Jul 6 19:53 .Trash-1000
    drwxrwxrwx 34 movieman movieman 4096 Dec 8 22:00 TV
    I think it would be useful for us to clear this up before we change anything at this point. We could just change it, but I suspect movieman will reappear in the future.

  4. #14
    Join Date
    May 2010
    Beans
    78

    Re: Help with multiple Samba fileservers on network

    My username is movieman. My computer is also named movieman.

    I don't want to sound like I know what I am doind, but I think you were right about the way the drives are being mounted. The 2 drives that are formated as NTFS work fine but the permission problem may be coming from the way the EXT4 drive is being mounted? I hope this helps. I am lost
    Last edited by hollywoodpete; December 13th, 2012 at 04:41 AM.

  5. #15
    Join Date
    May 2010
    Beans
    78

    Re: Help with multiple Samba fileservers on network

    getent passwd
    root:x:0:0:root:/root:/bin/bash
    daemon:x:1:1:daemon:/usr/sbin:/bin/sh
    bin:x:2:2:bin:/bin:/bin/sh
    sys:x:3:3:sys:/dev:/bin/sh
    sync:x:4:65534:sync:/bin:/bin/sync
    games:x:5:60:games:/usr/games:/bin/sh
    man:x:6:12:man:/var/cache/man:/bin/sh
    lp:x:7:7:lp:/var/spool/lpd:/bin/sh
    mail:x:8:8:mail:/var/mail:/bin/sh
    news:x:9:9:news:/var/spool/news:/bin/sh
    uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
    proxy:x:13:13:proxy:/bin:/bin/sh
    www-data:x:33:33:www-data:/var/www:/bin/sh
    backup:x:34:34:backup:/var/backups:/bin/sh
    list:x:38:38:Mailing List Manager:/var/list:/bin/sh
    irc:x:39:39:ircd:/var/run/ircd:/bin/sh
    gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
    nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
    libuuid:x:100:101::/var/lib/libuuid:/bin/sh
    syslog:x:101:103::/home/syslog:/bin/false
    messagebus:x:102:104::/var/run/dbus:/bin/false
    colord:x:103:108:colord colour management daemon,,,:/var/lib/colord:/bin/false
    lightdm:x:104:111:Light Display Manager:/var/lib/lightdm:/bin/false
    whoopsie:x:105:114::/nonexistent:/bin/false
    avahi-autoipd:x:106:117:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
    avahi:x:107:118:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
    usbmux:x:108:46:usbmux daemon,,,:/home/usbmux:/bin/false
    kernoops:x:109:65534:Kernel Oops Tracking Daemon,,,:/:/bin/false
    pulse:x:110:119:PulseAudio daemon,,,:/var/run/pulse:/bin/false
    rtkit:x:111:122:RealtimeKit,,,:/proc:/bin/false
    saned:x:112:123::/home/saned:/bin/false
    speech-dispatcher:x:113:29:Speech Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh
    hplip:x:114:7:HPLIP system user,,,:/var/run/hplip:/bin/false
    movieman:x:1000:1000:movieman,,,:/home/movieman:/bin/bash
    debian-transmission:x:115:126::/home/debian-transmission:/bin/false
    sshd:x:116:65534::/var/run/sshd:/usr/sbin/nologin

  6. #16
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by hollywoodpete View Post
    My username is movieman. My computer is also named movieman.
    As long as you can keep the user name (your login) separate in your mind from that of the hostname (your computer) I guess it's okay. Did you create a Samba user account (smbpasswd -a) for movieman (the login)?

  7. #17
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by hollywoodpete View Post
    Code:
    getent passwd
    root:x:0:0:root:/root:/bin/bash
    daemon:x:1:1:daemon:/usr/sbin:/bin/sh
    bin:x:2:2:bin:/bin:/bin/sh
    sys:x:3:3:sys:/dev:/bin/sh
    sync:x:4:65534:sync:/bin:/bin/sync
    games:x:5:60:games:/usr/games:/bin/sh
    man:x:6:12:man:/var/cache/man:/bin/sh
    lp:x:7:7:lp:/var/spool/lpd:/bin/sh
    mail:x:8:8:mail:/var/mail:/bin/sh
    news:x:9:9:news:/var/spool/news:/bin/sh
    uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
    proxy:x:13:13:proxy:/bin:/bin/sh
    www-data:x:33:33:www-data:/var/www:/bin/sh
    backup:x:34:34:backup:/var/backups:/bin/sh
    list:x:38:38:Mailing List Manager:/var/list:/bin/sh
    irc:x:39:39:ircd:/var/run/ircd:/bin/sh
    gnats:x:41:41:Gnats Bug-Reporting System (admin):/var/lib/gnats:/bin/sh
    nobody:x:65534:65534:nobody:/nonexistent:/bin/sh
    libuuid:x:100:101::/var/lib/libuuid:/bin/sh
    syslog:x:101:103::/home/syslog:/bin/false
    messagebus:x:102:104::/var/run/dbus:/bin/false
    colord:x:103:108:colord colour management daemon,,,:/var/lib/colord:/bin/false
    lightdm:x:104:111:Light Display Manager:/var/lib/lightdm:/bin/false
    whoopsie:x:105:114::/nonexistent:/bin/false
    avahi-autoipd:x:106:117:Avahi autoip daemon,,,:/var/lib/avahi-autoipd:/bin/false
    avahi:x:107:118:Avahi mDNS daemon,,,:/var/run/avahi-daemon:/bin/false
    usbmux:x:108:46:usbmux daemon,,,:/home/usbmux:/bin/false
    kernoops:x:109:65534:Kernel Oops Tracking Daemon,,,:/:/bin/false
    pulse:x:110:119:PulseAudio daemon,,,:/var/run/pulse:/bin/false
    rtkit:x:111:122:RealtimeKit,,,:/proc:/bin/false
    saned:x:112:123::/home/saned:/bin/false
    speech-dispatcher:x:113:29:Speech Dispatcher,,,:/var/run/speech-dispatcher:/bin/sh
    hplip:x:114:7:HPLIP system user,,,:/var/run/hplip:/bin/false
    movieman:x:1000:1000:movieman,,,:/home/movieman:/bin/bash
    debian-transmission:x:115:126::/home/debian-transmission:/bin/false
    sshd:x:116:65534::/var/run/sshd:/usr/sbin/nologin
    I don't really need this data. It was for you to look over. If you are going to post any data you should post it enclosed in [code] [ /code] blocks so it is formatted. It's easier to read that way. There is a # icon at the top of the editor that will provide the [code] brackets.

  8. #18
    Join Date
    May 2010
    Beans
    78

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by redmk2 View Post
    As long as you can keep the user name (your login) separate in your mind from that of the hostname (your computer) I guess it's okay. Did you create a Samba user account (smbpasswd -a) for movieman (the login)?
    No. I have one samba username "nighthawk" (don't laugh)
    I did check the permissions of the drives using "disk utility" and saw that the problem drive is owned by a group called movieman. I would love to have it in the root group

  9. #19
    Join Date
    Jul 2008
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help with multiple Samba fileservers on network

    Quote Originally Posted by hollywoodpete View Post
    No. I have one samba username "nighthawk" (don't laugh)
    I did check the permissions of the drives using "disk utility" and saw that the problem drive is owned by a group called movieman. I would love to have it in the root group
    I know it seems like a lot of questions, but it's important. Is the HDD that holds the partition an external USB drive that you just plug in and it mounts?

    Post the output of this
    Code:
    sudo fdisk -l
    ...and post the output of this
    Code:
    cat /etc/fstab

  10. #20
    Join Date
    May 2010
    Beans
    78

    Re: Help with multiple Samba fileservers on network

    [CODE][/sudo fdisk -l]
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0003801d

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 155258879 77628416 83 Linux
    /dev/sda2 155260926 156301311 520193 5 Extended
    /dev/sda5 155260928 156301311 520192 82 Linux swap / Solaris

    Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x90cd1e4f

    Device Boot Start End Blocks Id System
    /dev/sdb1 63 1953520064 976760001 7 HPFS/NTFS/exFAT

    Disk /dev/sdd: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0e290bcd

    Device Boot Start End Blocks Id System
    /dev/sdd1 * 63 976768064 488384001 7 HPFS/NTFS/exFAT

    Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
    255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0001c03c

    Device Boot Start End Blocks Id System
    /dev/sdc1 63 1953520064 976760001 83 Linux

Page 2 of 3 FirstFirst 123 LastLast

Bookmarks

Posting Permissions

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