Page 3 of 9 FirstFirst 12345 ... LastLast
Results 21 to 30 of 84

Thread: Shared External USB Hard Drive: Browesable, but no write privileges

  1. #21
    Join Date
    Jul 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    And can you also this, just in case :
    Code:
    ls -la /media
    chown -R grossinm /media/Storage

  2. #22
    Join Date
    Jan 2009
    Location
    Albuquerque, NM
    Beans
    54
    Distro
    Xubuntu 8.10 Intrepid Ibex

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    Terminal output:

    grossinm@millerserver:~$ id
    uid=1000(grossinm) gid=1000(grossinm) groups=4(adm),20(dialout),24(cdrom),46(plugdev),11 2(lpadmin),120(admin),122(sambashare),1000(grossin m)
    grossinm@millerserver:~$ mount
    /dev/sda6 on / type ext3 (rw,relatime,errors=remount-ro)
    tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    /proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
    varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
    udev on /dev type tmpfs (rw,mode=0755)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
    fusectl on /sys/fs/fuse/connections type fusectl (rw)
    lrm on /lib/modules/2.6.27-9-generic/volatile type tmpfs (rw,mode=755)
    securityfs on /sys/kernel/security type securityfs (rw)
    /dev/sdb1 on /media/Storage type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
    grossinm@millerserver:~$ ls -la /media
    total 16
    drwxr-xr-x 4 root root 4096 2009-01-05 16:05 .
    drwxr-xr-x 20 root root 4096 2009-01-04 14:41 ..
    lrwxrwxrwx 1 root root 6 2009-01-04 13:59 cdrom -> cdrom0
    drwxr-xr-x 2 root root 4096 2009-01-04 13:59 cdrom0
    -rw-r--r-- 1 root root 0 2009-01-05 16:03 .hal-mtab
    -rw------- 1 root root 0 2009-01-05 10:18 .hal-mtab-lock
    drwxrwxrwx 1 grossinm grossinm 4096 2009-01-05 10:56 Storage
    grossinm@millerserver:~$ chown -R grossinm /media/Storage
    grossinm@millerserver:~$
    Last edited by grossinm; January 6th, 2009 at 12:30 AM.

  3. #23
    Join Date
    Jan 2009
    Location
    Albuquerque, NM
    Beans
    54
    Distro
    Xubuntu 8.10 Intrepid Ibex

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    Just to keep it all current, here is the current smb.conf:

    [global]
    panic action = /usr/share/samba/panic-action %d
    workgroup = "miller"
    netbios name = "millerserver"
    invalid users = root
    security = user
    wins support = no
    log file = /var/log/samba.log
    log level = 3
    max log size = 1000
    syslog = 1
    encrypt passwords = true
    passdb backend = smbpasswd
    socket options = TCP_NODELAY
    dns proxy = no
    passwd program = /usr/bin/passwd %u
    passwd chat =*enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
    obey pam restrictions = yes
    pam password change = no
    null passwords = no
    guest account = nobody
    create mask = 0644
    directory mask = 0755


    #Share Definitions

    [homes]
    comment = Home Directories
    browseable = yes
    writeable = yes
    security mask = 0700
    create mask = 0700

    [Storage]
    comment = ITunes
    path = /media/Storage/
    public = yes
    guest ok = yes
    writeable = yes
    read only = No

  4. #24
    Join Date
    Jul 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    /dev/sdb1 on /media/Storage type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,b lksize=4096)
    Ok, I just tested with a NTFS partition on an usb stick, mounting with -o uid=1000 doesn't show that in the mount output.
    Well. I don't see what it wouldn't work now, I'll test it with samba on my desktop soonish.

  5. #25
    Join Date
    Jul 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    I just tested it with a NTFS partition here on some usb-stick.

    Mounted like this :
    mount /dev/sdb1 /tmp/test -t ntfs-3g -o uid=1000,gid=1000,umask=000

    test share section in /etc/samba/smb.conf :
    [TEST]
    comment = TEST
    read only = No
    writable = yes
    # locking = no
    path = /tmp/test
    guest ok = yes
    $ testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[TEST]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions

    [global]
    server string = %h server (Samba, Ubuntu)
    map to guest = Bad User
    obey pam restrictions = Yes
    passdb backend = tdbsam
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\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

    [TEST]
    comment = TEST
    path = /tmp/test
    read only = No
    guest ok = Yes
    Tried with my user which has uid 1000, and i could create a new directory.
    Also anonymous access let me create a new directory.

  6. #26
    Join Date
    Jan 2009
    Location
    Albuquerque, NM
    Beans
    54
    Distro
    Xubuntu 8.10 Intrepid Ibex

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    grossinm@millerserver:~$ sudo umount /dev/sdb1
    grossinm@millerserver:~$ sudo mount /dev/sdb1 /media/Storage -t ntfs-3g -o uid=1000,gid=1000,umask=000
    grossinm@millerserver:~$ sudo nano smb.conf
    grossinm@millerserver:~$ sudo /etc/init.d/samba restart
    * Stopping Samba daemons [ OK ]
    * Starting Samba daemons [ OK ]
    grossinm@millerserver:~$ testparm
    Load smb config files from /etc/samba/smb.conf
    Processing section "[printers]"
    Processing section "[print$]"
    Processing section "[grossinm]"
    Processing section "[Storage]"
    Loaded services file OK.
    Server role: ROLE_STANDALONE
    Press enter to see a dump of your service definitions

    [global]
    workgroup = MILLER
    server string = %h server (Samba, Ubuntu)
    map to guest = Bad User
    obey pam restrictions = Yes
    passdb backend = tdbsam
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\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

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

    [grossinm]
    path = /home/grossinm
    read only = No
    guest ok = Yes

    [Storage]
    path = /media/Storage
    guest ok = Yes
    grossinm@millerserver:~$ smbclient //localhost/Storage/
    Enter grossinm's password:
    Domain=[MILLERSERVER] OS=[Unix] Server=[Samba 3.2.3]
    smb: \> ls
    . D 0 Mon Jan 5 10:56:30 2009
    .. D 0 Mon Jan 5 16:05:28 2009
    System Volume Information D 0 Mon Jan 5 10:56:30 2009

    59616 blocks of size 16777216. 59610 blocks available
    smb: \> mkdir test
    NT_STATUS_MEDIA_WRITE_PROTECTED making remote directory \test
    smb: \>

    So close. The permissions for the Storage share are still w/ Grossinm. The permissions for the media section are still w/ Root though...

    Also, found this bug report https://bugs.launchpad.net/ubuntu/+s...ux/+bug/224317
    Last edited by grossinm; January 6th, 2009 at 03:22 AM.

  7. #27
    Join Date
    Jan 2009
    Location
    Albuquerque, NM
    Beans
    54
    Distro
    Xubuntu 8.10 Intrepid Ibex

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    Rightly or wrongly, I am reformatting the drive to Ext3 and will see if that makes any difference....

  8. #28
    Join Date
    Jan 2009
    Location
    Albuquerque, NM
    Beans
    54
    Distro
    Xubuntu 8.10 Intrepid Ibex

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    No change, and now the permissions are set back to Root on Storage...

  9. #29
    Join Date
    Jul 2008
    Location
    Netherlands
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    Quote Originally Posted by grossinm View Post
    No change, and now the permissions are set back to Root on Storage...
    With ext3 it should be much easier.
    Then you can properly set the permissions permanently without any extra mount options.

  10. #30
    Join Date
    Jan 2009
    Location
    Albuquerque, NM
    Beans
    54
    Distro
    Xubuntu 8.10 Intrepid Ibex

    Re: Shared External USB Hard Drive: Browesable, but no write privileges

    Well, it is ready to mount, but after trying last night to figure out the appropriate mount command, I have not had any luck. Should I just sudo mount /dev/sdb1 /media/Storage ?

Page 3 of 9 FirstFirst 12345 ... LastLast

Tags for this Thread

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
  •