Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Read only ext3 HDD with smb access
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Read only ext3 HDD with smb access
27th May, 2016, 10:47 PM
Post: #4
Nachteule Offline
Administrator
******
Posts: 2,406
Joined: Dec 2014
Reputation: 122
RE: Read only ext3 HDD with smb access
@GastonBA

Just tested. Having full access to my ext4 formatted external disk.

Terminal

xbian@kmxbilr2 /media $ ls -la /media
insgesamt 8
drwxr-xr-x 1 root root 22 Mai 27 14:34 .
drwxr-xr-x 1 root root 176 Mai 21 02:20 ..
lrwxrwxrwx 1 root root 14 Mai 27 14:34 usb0 -> /media/usb500g
drwxrwxrwx 6 root root 4096 Mai 27 14:36 usb500g
xbian@kmxbilr2 /media $ cd usb500g/
xbian@kmxbilr2 /media/usb500g $ mkdir x
xbian@kmxbilr2 /media/usb500g $ cd x
xbian@kmxbilr2 /media/usb500g/x $ touch y
xbian@kmxbilr2 /media/usb500g/x $ ls -la
insgesamt 8
drwxr-xr-x 2 xbian xbian 4096 Mai 27 14:40 .
drwxrwxrwx 7 root root 4096 Mai 27 14:39 ..
-rw-r--r-- 1 xbian xbian 0 Mai 27 14:40 y
xbian@kmxbilr2 /media/usb500g/x $

This is my /etc/usbmount/usbmount.conf

Code:
# Configuration file for the usbmount package, which mounts removable
# storage devices when they are plugged in and unmounts them when they
# are removed.

# Change to zero to disable usbmount
ENABLED=1

# start UDisks daemon?
STARTUDISKS=0

# Filesystem types: removable storage devices are only mounted if they
# contain a filesystem type which is in this list.
FILESYSTEMS="btrfs ntfs vfat ext2 ext3 ext4 hfsplus exfat msdos iso9660 xfs jfs"

# Directory where static name mountpoints (consisting of LABEL and UUID) will be created
MNTPNTDIR="/media"

# Include partition UUID in mountpoint folder name
UUIDNAME=no

# Dorectory where USBx symlinks will be created
LINKDIR="/media"

# Share via Samba to access through RPI from other Windows installed PC on the same network
SHARESMB=yes
SHARERW=no
SHARELT=no

# Set spindown for rotational disks (minutes 1-20), 0 to disable
SPINDOWN=0

#############################################################################
# WARNING!                                                                  #
#                                                                           #
# The "sync" option may not be a good choice to use with flash drives, as   #
# it forces a greater amount of writing operating on the drive. This makes  #
# the writing speed considerably lower and also leads to a faster wear out  #
# of the disk.                                                              #
#                                                                           #
# If you omit it, don't forget to use the command "sync" to synchronize the #
# data on your disk before removing the drive or you may experience data    #
# loss.                                                                     #
#                                                                           #
# It is highly recommended that you use the pumount command (as a regular   #
# user) before unplugging the device. It makes calling the "sync" command   #
# and mounting with the sync option unnecessary---this is similar to other  #
# operating system's "safely disconnect the device" option.                 #
#############################################################################
# Mount options: Options passed to the mount command with the -o flag.
# See the warning above regarding removing "sync" from the options.
MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime,rw"

# Filesystem type specific mount options: This variable contains a space
# separated list of strings, each which the form "-fstype=TYPE,OPTIONS".
#
# If a filesystem with a type listed here is mounted, the corresponding
# options are appended to those specificed in the MOUNTOPTIONS variable.
#
# For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add
# the options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem
# is mounted.
FS_MOUNTOPTIONS="-fstype=ntfs,gid=xbian,uid=xbian,umask=0,big_writes,allow_other \
                 -fstype=vfat,gid=xbian,uid=xbian,umask=0 \
                 -fstype=hfsplus,gid=xbian,uid=xbian,umask=0,force \
                 -fstype=exfat,gid=xbian,uid=xbian,umask=0 \
                 -fstype=btrfs,compress=lzo,subvol=/"

# If set to "yes", more information will be logged via the syslog
# facility.
VERBOSE=no

USESWAPS=no

BUT

if you want to access already existing folder and files, you have to make sure that user xbian has write permissions! I'm supposing this is your problem
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Read only ext3 HDD with smb access - ggmero67 - 19th Oct, 2014, 01:59 AM
RE: Read only ext3 HDD with smb access - GastonBA - 27th May, 2016, 01:56 PM
RE: Read only ext3 HDD with smb access - Nachteule - 27th May, 2016 10:47 PM
RE: Read only ext3 HDD with smb access - GastonBA - 28th May, 2016, 11:39 AM
RE: Read only ext3 HDD with smb access - Nachteule - 29th May, 2016, 02:23 AM
Only Read Access to External USB Drives - GastonBA - 27th May, 2016, 01:52 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 17th Jun, 2025, 06:55 AM Powered By MyBB, © 2002-2025 MyBB Group.