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

[PROBLEM] SMB user config
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: SMB user config
12th Mar, 2014, 09:54 AM
Post: #1
Eisregen04 Offline
Registered
Posts: 1
Joined: Mar 2014
Reputation: 0
Question SMB user config
hey hey,
i set up my pi with xbian and first to say it works great ( media play, library )
i am new to linux, i know how i can connect to the pi with putty
Now i try to set up smb so when i connect from my pc (WiN 8) to the pi he will ask me for a user and pw, in config i found write access but only for everyone eg anonymous and i dont want this

i got it that he ask for a user and pw for the default folders "xbian" "xbian-xbmc" "system-logs" but not for my connected usb hard drive, how can i set this up ? And is it necessary to create multiple users for every pc in the network or can all connect with the same user/pw?
probably its necessary for more user accounts for only read and read/write access.

Sorry for my bad english it is not my main language but i hope anybody can help me.

Software
XBian version: latest ( installed 2 days ago) 1.0 beta 2 i guess
XBMC version: included in the xbian installer
Overclock settings: none

Hardware
Power supply rating: 1,2A 5V
RPi model (model A/B 256mb/512mb): B / 512 mb
SD card size and make/type: SanDisk Ultra 16gb 30mb/s
Network (wireless or LAN): Lan
Connected devices (TV, USB, network storage, etc.): TV , USB Keyboard and 1TB HDD
Find all posts by this user
Quote this message in a reply
15th Mar, 2014, 02:38 AM
Post: #2
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: SMB user config
I'm not an expert in this field, but from what you are saying, you will need to look at the conf files in
/etc/samba/

Maybe someone else has a better idea.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
16th Mar, 2014, 08:12 AM
Post: #3
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: SMB user config
(12th Mar, 2014 09:54 AM)Eisregen04 Wrote:  i got it that he ask for a user and pw for the default folders "xbian" "xbian-xbmc" "system-logs" but not for my connected usb hard drive, how can i set this up ? And is it necessary to create multiple users for every pc in the network or can all connect with the same user/pw?
probably its necessary for more user accounts for only read and read/write access.

at /etc/usbmount/usbmount.conf

there are three parameters

SHARESMB=yes
SHARERW=no
SHARELT=no

1 - shares enabled on hotplug disks
2 - rw access enabled (anonymous)
3 - rw limitations - expects xbian user ownership and asks password for xbian user (smbuser xbian)

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
9th May, 2014, 05:39 AM
Post: #4
Despendo Offline
Registered
Posts: 1
Joined: May 2014
Reputation: 0
RE: SMB user config
Hi Everybody,

I didn't have the value "SHARELT" in my /etc/usbmount/usbmount.conf Sad I update my Xbian but it's the same result : Just SHARESMB & SHARERW.

When I look the /usr/share/usbmount/usbmount file, I didn't find the SHARELT option.

My goal is to have 2 access with samba : Anonymous with Read & Xbian width Write/Read.

Any Solution ?

THX

Despendo
French user
Find all posts by this user
Quote this message in a reply
29th Dec, 2015, 08:13 PM
Post: #5
Pascal Offline
Registered
Posts: 8
Joined: Feb 2015
Reputation: 0
RE: SMB user config
Old thread, but I was looking for the same kind of thing
I did it with defining xbian as samba user with a password :
Terminal
sudo smbpasswd xbian
then defining shares in /etc/samba/shares.conf
For me it looks like this :
- disable xbian-xbmc, in the latest distrib, .xbmc doesn't exist anymore
- xbian and logs available only for xbian
- a dropbox dir to allow guests to upload files
- an exemple of directory in read only mode for guests
- an exemple of directory in read/write mode for xbian only

Terminal

[xbian]
path = /home/xbian
guest ok = no
read only = no
force user = xbian
browseable = yes

#[xbian-xbmc]
# path = /home/xbian/.xbmc
# guest ok = yes
# read only = no
# force user = xbian
# browseable = yes

[xbian-kodi]
path = /home/xbian/.kodi
guest ok = no
read only = no
force user = xbian
browseable = yes

[system-logs]
path = /var/log
guest ok = no
read only = yes
force user = root
browseable = yes

[DropBox]
path = /your/path/to/DropBox
guest ok = yes
read only = no
force user = xbian
browseable = yes

[dir-guest-ro]
path = /your/path/to/dir
guest ok = yes
read only = yes
force user = xbian
browseable = yes

[dir-xbian-rw]
path = /your/path/to/dir
guest ok = no
read only = no
force user = xbian
browseable = yes
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


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

Current time: 24th May, 2025, 07:00 AM Powered By MyBB, © 2002-2025 MyBB Group.