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
22nd Nov, 2013, 02:30 AM
Post: #7
pit79 Offline
Registered
Posts: 19
Joined: Nov 2013
Reputation: 0
RE: Password protecting SMB write access to USB automounts
(21st Nov, 2013 08:31 PM)tievolu Wrote:  
(21st Nov, 2013 07:50 PM)mk01 Wrote:  
(21st Nov, 2013 06:32 PM)tievolu Wrote:  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.

leave world writeable on. just don't forget to re-mount the usb hdd after you comment the line out (easiest to do is reboot). smb settings are set upon mounting the drive.

I did reboot, after each change - both to the script and the world writeable GUI option. I would reboot again just to be certain but I'm at work and if I reboot the pi it'll turn the telly on (it's a plasma so I don't want it sitting there all day on the XMBC home screen Smile).

This is what I did:

1. Commented out the line you specified in the usbmount script (world writeable was disabled at this point)
2. Rebooted pi
3. Checked SMB mount from windows machine, and I could not copy anything to the HDD. This was the case when accessing the share both as a guest and as "xbian".
4. Change GUI setting to enable the world writeable option.
5. Rebooted pi
6. Checked SMB mount from windows machine, and I could copy files to the HDD as xbian or a guest

(21st Nov, 2013 07:40 PM)pit79 Wrote:  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

The xbian account is already enabled, and with the right password (same as the xbian unix account). I don't think I need to add it and enable it.

Or are you suggesting that I remove the xbian smb account and re-add it?
yeah you can try do it again, had similar problem and after enable samba shares start working for xbian. If not, unmount hdd and mount it with uid=1001, gid=1001
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,628 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, 09:33 AM Powered By MyBB, © 2002-2025 MyBB Group.