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

Password protecting SMB write access to USB automounts
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Password protecting SMB write access to USB automounts
21st Nov, 2013, 07:40 PM
Post: #4
pit79 Offline
Registered
Posts: 19
Joined: Nov 2013
Reputation: 0
RE: Password protecting SMB write access to USB automounts
(21st Nov, 2013 06:32 PM)tievolu Wrote:  
(21st Nov, 2013 03:53 PM)mk01 Wrote:  2. xbian smb password and xbian unix password is not synced. to setup (change) smb password, use
Code:
smbpasswd xbian

This works, but you have to run it as root using sudo.

(21st Nov, 2013 03:53 PM)mk01 Wrote:  1. currently not configurable, but can be added to next version of usb mount package. until then edit "/usr/share/usbmount/usbmount" and comment out
Code:
net conf setparm $(basename "$mountpoint" | tr ' ' '_') "force user" xbian || :

on line 259. of course fs on USB auto mounted drive must be supporting access rights (for instance not FAT).

This doesn't seem to work. I've tried this with the "enable world writeable" option in the GUI enabled and disabled. Commenting out this line seems to make no difference to the original behaviour i.e. either everyone can write to the share or nobody can, in accordance with the GUI setting.

Thinking about it now, it would be useful to be able to do this for all the samba shares. I don't want anyone on my network accidentally modifying or deleting anything important.

Thanks for your help so far!

EDIT: BTW, the HDD's filesystem is ext4 and everything on the disk has been chowned to xbian:xbian. Permissions are set to 755 across the board:

Code:
drwxr-xr-x 5 xbian xbian 4096 Mar 28  2013 documentaries
drwxr-xr-x 2 xbian xbian 4096 Nov 19 09:03 films
drwxr-xr-x 5 xbian xbian 4096 Nov 18 08:01 kids
drwxr-xr-x 4 xbian xbian 4096 Mar 28  2013 sport
drwxr-xr-x 7 xbian xbian 4096 Nov 21 08:44 tv

Try
Terminal

sudo smbpasswd -a xbian
just make sure password is exactly same as your xbian user account(same to password when you ssh to your pi)

sudo smbpasswd -e xbian

this will turn your samba account on

Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


Messages In This Thread
Password protecting SMB write access to USB automounts - tievolu - 19th Nov, 2013, 11:39 PM
RE: Password protecting SMB write access to USB automounts - mk01 - 21st Nov, 2013, 03:53 PM
RE: Password protecting SMB write access to USB automounts - tievolu - 21st Nov, 2013, 06:32 PM
RE: Password protecting SMB write access to USB automounts - pit79 - 21st Nov, 2013 07:40 PM
RE: Password protecting SMB write access to USB automounts - mk01 - 21st Nov, 2013, 07:50 PM
RE: Password protecting SMB write access to USB automounts - tievolu - 21st Nov, 2013, 08:31 PM
RE: Password protecting SMB write access to USB automounts - pit79 - 22nd Nov, 2013, 02:30 AM
RE: Password protecting SMB write access to USB automounts - Limjesica - 13th Jun, 2022, 12:02 PM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [Q]Write access in Network Keepco 2 8,977 13th Jul, 2014 05:49 AM
Last Post: Keepco
  New user : No write access to USB drive kazuma6666 14 50,625 16th Jan, 2014 02:47 PM
Last Post: mk01

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

Current time: 22nd May, 2025, 07:08 AM Powered By MyBB, © 2002-2025 MyBB Group.