How do I add myself to the "staff" group for a samba share?

Hi all,
I've been struggling with this for a few hours now. I searched but could not find the answer (neither here nor google).
I am trying to set up a samba share on my raspberry pi and have it accessible by all other computer on my local network (just a home network). I want it set up so that when I access the share via my linux desktop I have read/write privileges, but when other users (my family, variety of linux and windows machines) access it they have read-only access and do not have to enter a password. I am not sharing any printers. The raspberry pi and my desktop are both running arch.
I am currently able to mount the share, but I only have read-only access. In the smb.conf file it has a pre-configured section for A publicly accessible directory, but read only, except for people in the "staff" group, which is the section I have tried to use. My user name on my desktop is 'gav', and I have created a user with the same name on the pi. On both the pi and the desktop I have added 'gav' to the staff group (using groupadd and usermod -aG).
On Windows machines: a Windows 7 desktop found the share and prompted for a password, I entered my password (as 'gav') and could access files, but read-only. A windows 8 laptop couldn't see it at all.
Here are some outputs of some things:
testparm (on the pi)
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:Parameter() - Ignoring badly formed line in configuration file: i
Processing section "[sharedfiles]"
Loaded services file OK.
Server role: ROLE_STANDALONE
[global]
workgroup = PISERVER
server string = Shared Media
log file = /var/log/samba/%m.log
max log size = 50
dns proxy = No
idmap config * : backend = tdb
[sharedfiles]
comment = Proper share
path = /mnt/sambashare
write list = @staff
guest ok = Yes
I'm not sure which is the 'badly formed line', any idea how I find out?
smbtree (on desktop)
WORKGROUP
PISERVER
\\PI Shared Media
\\PI\sharedfiles Proper share
\\PI\IPC$ IPC Service (Shared Media)
ASUSROUTER
smbclient -L PI -U% (on desktop)
Domain=[PISERVER] OS=[Unix] Server=[Samba 4.1.0]
Sharename Type Comment
IPC$ IPC IPC Service (Shared Media)
sharedfiles Disk Proper share
Domain=[PISERVER] OS=[Unix] Server=[Samba 4.1.0]
Server Comment
PI Shared Media
Workgroup Master
ASUSROUTER DSL-N55U
PISERVER PI
WORKGROUP SHODAN
command I entered to mount share (as root)
mount -t cifs //PI/sharedfiles /media/pi -o user=gav,password=pass,workgroup=PISERVER,ip=192.168.1.199
Any help would be appreciated, please let me know if there are any more outputs I can provide.
Thank you for reading
Last edited by gav989 (2013-11-10 13:34:46)

Consider using sshfs to mount your Pi from your Linux boxes.  It's much easier to configure and manage than samba.  It sounds like you already have your Windows machines mounting your Pi so Samba is doing its job in that respect.
More info on sshfs in the Wiki: https://wiki.archlinux.org/index.php/Sshfs
To help get you off the dime, here's a modified line from my fstab that I use to mount my Pi with:
gav@PI:/mnt/backup /mnt/rpi/backup fuse.sshfs rw,relatime,user_id=0,group_id=0,allow_other 0 0
Subsitute my mount points with yours.
For a password-less mount:
     ssh-copy-id gav@PI
after you've set up ssh and generated some keys on your client box.
Here are some relevant lines from the smb.conf file on my Pi that I use for my one Windows box in the house that might help you with your write permissions:
   security = user
  hosts allow = 192.168.1.0/255.255.255.0
  guest account = gav
; And my share setup:
[rpi]
   comment = Public Stuff
   path = /mnt
   writable = yes
;   printable = no
;   write list = @krb
[torrent_dl]
   path = /mnt/video/torrent_dl
   writable = yes
   create mask = 0770
   directory mask = 0770
   guest ok = Yes
   case sensitive = No
   read only = No
Hope this helps.

Similar Messages

  • How do I put myself in the staff group?

    I have been trying to optimize my iMac 24 ever since I upgraded to OS X Lion.  Tons of SBBOD and general slowness.  I went through all the basics and things are much better.  This included booting in to the recovery partition and resetting my home folders permissions back to the defaults for Lion.  I did this because I noticed that the permissions on my stuff in my home folder still had me in the group that was identified by my username - a throw back to a prior version of OS X.
    After running the procedure, here is what my home directory looks like:
    iMac24:~ hstan$ ls -l
    total 2032
    -rw-r--r--@  1 hstan  staff  518912 Sep 23 15:26 Apache Documents
    drwx------+ 13 hstan  staff     442 Dec 20 08:11 Desktop
    drwx------+ 62 hstan  staff    2108 Dec 16 15:14 Documents
    drwx------+  5 hstan  staff     170 Dec 20 08:09 Downloads
    drwx------@ 73 hstan  staff    2482 Dec 21 10:22 Library
    drwx------+ 19 hstan  staff     646 Nov 28 21:25 Movies
    drwx------+  7 hstan  staff     238 Mar 26  2006 Music
    drwxrwxrwx   6 hstan  staff     204 May 27  2008 News.framework
    drwx------+  8 hstan  staff     272 Oct 15 14:48 Pictures
    drwxr-xr-x+  6 hstan  staff     204 Sep 24  2010 Public
    drwxr-xr-x   8 hstan  staff     272 Nov  6  2010 Sites
    iMac24:~ hstan$
    I did successfully reset all the permissions in my home folder to what Lion expects as above.  Popping a terminal, I ran the 'id' command and this what I see:
    iMac24:~ hstan$ id
    uid=502(hstan) gid=502(hstan) groups=502(hstan),401(com.apple.access_screensharing),12(everyone),33(_appstore ),61(localaccounts),80(admin),98(_lpadmin),
    100(_lpoperator),204(_developer)
    How do I put myself back in to the staff group?  I know that I have to do it via the shell - just don't know to do it.  Also, once I do manage to put myself back in to the staff group should I delete the gid 502(hstan)?
    I do admit that things did indeed smooth out after I reset my home folder to the default permissions.  Just stuck on this last bit of cleanup work.
    Thanks!

    Realize this thread has been dead for a while, but I was running into permission problems on 10.8.0 and managed to find this fix. I can't remember when I last did a clean install, but it was before the transition to staff as the primary group, so the account is pretty old.
    I used Directory Utility to change the primary group on my account (twillis) from twillis to staff as described. I then rebooted into the recovery partition and ran resetpassword to repair the home directory permissions and also rain repair permissions from Disk Utility. Finally, I used chgrp to manually change groups on some things like apps and frameworks that were in twillis (this looked like the right group to use based on context). Process went smoothly and worked as expected with one glitch.
    I have now found a few situations where files are still created or changed to the twillis group. According to id I am no longer in that group (as I would expect):
    [twillis@elle] ~ 39 # id
    uid=501(twillis) gid=20(staff) groups=20(staff), 401(com.apple.access_screensharing), 12(everyone),
    33(_appstore),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),9 8(_lpadmin),
    100(_lpoperator),204(_developer)
    As an example, unzipping a zip file with the Finder creates files in the group twillis even if the zip file and its contents were in staff. Another example involves AlbumData.xml in the iPhoto Library package: I can chgrp it to staff, open Aperture, edit a picture, and quit and AlbumData.xml will be back in twillis on exit (doing a simlar set of steps with iPhoto though does not change it).
    Should I have removed the twillis group with Directory Utility too (using the "-" button right under the left column of the window) --- twillis is showing up listed in Users&Groups too in a "groups" section after the accounts, so perhaps I can delete it from there too? Or is there some other state that is still associating the twillis group with the twillis account that I also need to change?
    Thanks,
    tw

  • How to I add options to the Context Menu for html files under Site Content

    Currently in Web Page Composer...  if a developer wants to get the Target URL to an html page in a WPC site (i.e. under the Site Content folder) they have to take several steps...   Content Menu -> Details -> Settings -> Properties -> Access Links -> copy the Target URL.  I would like to add this ability (i.e. to copy the target URL to clipboard) as a option to the "context menu" of each html file.  Does anyone know if this is possible and if so how it can be done?   It can be a global change if necessary.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Also check the Mouse driver settings in the Control Panel.

  • How do I add "exceptions" to the "remember passwords for sites" feature in Tools/Options/Security?

    I like when FireFox remembers and automatically posts user names and password when I go on to most sites. But there are some I do not wish to automatically be posted. However, when I select "Exceptions" within the Tools/Options/Security/Remember Passwords For Sites pathway, all I can do is see the sites that are exceptions. This facility doesn't seem to allow you to add a site (which would then become an exception). Please advise.

    Tools > Options > Security > Passwords: Exceptions
    Include those that you do not want to save passwords for, such as those regard banks, credit cards, or other financial institutions.
    To remove one already created use the "Saved Passwords" on that dialog,
    after supplying master password (twice if you view passwords),
    :Select the site and use "Remove" to remove the unwanted password.
    :Certainly hope you do assign a Master Password to provide some protection to your passwords.
    I like that '''about:permissions''' noted by xr417, it does same as above, but allows you to modify something already in system easier. Don't think I've seen that before. Did a search on bank and found an old account/password -- don't even want an old one there.

  • When I want to add items to the bookmarks toolbar, for example: -Zoom toolbar. The zoom Toolbar appears on the bookmarks toolbar, but it shows the favicons aswell the underlined text. I only want the favicons. How to do this, please help!!

    I want to add items to the bookmarks toolbar. for example: the Zoom Toolbar addon. This works, but not only the favicons appear on the bookmarks toolbar, aswell as the underlined text. How to avoid this?
    I only want the favicons from an addon to appear on the bookmarks toolbar, not with the underlined text. How to do this?
    This problem doesn't happen with any other toolbar. And this problem didn't happen with an earlier version of firefox. Please Help!
    Thanx, BassMann.

    If you only want the favicons and not the names of the bookmarks on the bookmarks toolbar, you can do that with the [https://addons.mozilla.org/en-US/firefox/addon/4072/ Smart Bookmarks Bar] add-on.

  • I have an apple TV Model A1427 and do not have an icon for youtube. How can I add youtube to the home page?

    I have an apple TV Model A1427 and do not have an icon for youtube. How can I add youtube to the home page?

    Have icon but cannot connect - Please Help.
    Mine is Gen. 2 - Model MC572C/A. I have the YouTube icon but cannot access YouTube.  Message says "No content was found - There is a problem communicating with YouTube. Try again later."  This problem has been for at least 1 month now.  Any ideas?

  • HT4059 how can i add books to the library on my iphone 4s

    How can I add books to the library on my 4s?

    If the photos that you are wanting to delete are also in your Camera Roll then you can delete them from the camera roll

  • How do I add apps to the dock on my mac?

    how do I add apps to the dock on my mac?

    Select the application you wish to put in the Dock, then drag it into the left side of the Dock's sizing gadget.

  • Using the value "Image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of preconfigured file types (.jpe, .jpg, .jpeg, .?

    On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
    Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
    <input type="file" name="file" accept="image/*" id="file" />
    mimeTypes.rdf does not seem to allow this.

    ''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
    You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
    <pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
    For details, see
    * [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input]

  • I have an ipod touch and the contacts icon is missing.  How can you add it to the home screen?

    I can't find the contacts icon... How can you add this to the home screen

    Every iPod touch has a contacts icon. It might be hiding. You can try Settings > General > Reset > Reset Home Screen Layout.

  • I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    I currently have a D-Link DI-604 broadband router with windows computers.  How can I add wifi to the network for use with ipad?  Can I use AirPort Express?

    Yes. You can directly connect an 802.11n AirPort Express Base Station (AXn) using an Ethernet cable. The AXn would then just need to be configured as a bridge to allow the D-Link to continue to provide both NAT & DHCP services for all network clients connected to either router.
    In this configuration, the AXn would broadcast a wireless network for your wireless network clients to connect to.

  • How can I add photos in the Camera roll to My photo stream if they were taken prior to icloud being activated?

    How can I add photos in the Camera roll to My photo stream if they were taken prior to icloud being activated?

    You have a couple of options:
    Open the photos one at a time and take a screenshot.  This will add a new low resolution copy of the photo to the camera roll, which will then upload to your photo stream;
    Email the photos one at a time to yourself, then save the attached photos to your camera roll.  This will add a copy of the photo at full resolution to your camera roll and upload to photo stream;
    Use an app like PhotoSync, which will allow you to wirelessly transfer copies of all your old photos to your computer all at once.  Then delete these photos from your camera roll and use PhotoSync to transfer them back from your computer to your camera roll.  These will be the original resolution and will upload to your photo stream.  (You need an app like this because iTunes will not transfer photos back to your camera roll, where they must be in order to add to your photo stream.)

  • How can i add subfolders in the mailsystem to classified my mails

    how can i add subfolders in the mailsystem to classified my mails similar to outlook. Somebody with idea?-

    You can't do it directly on the iPad. If your email account is setup as IMAP, create the folders on the server (either in Outlook or webmail) and then the folders will appear in iPad Mail.

  • In the middle of creating a book in aperture I need more photos. How can I add them to the browser at this stage?

    In the middle of creating a book in Aperture I need more photos. How can I add them to the browser at this stage?

    In the middle of creating a book in Aperture I need more photos. How can I add them to the browser at this stage?
    You can add more images to your book, by dragging them from the browser to your book album. Switch to the Library Inspector, select the album or project with the images in the source list, and then drag these images onto the book icon. That will add them to the book album, and then double click the book album again to continue working with the book.
    Regards
    Léonie

  • How do i add photos to the photo array when creating a book using iphoto 8.1.2?  the book doesn't accept the albums and foldlers i drag and drop.

    how do i add photos to the photo array when creating a book using iphoto 8.1.2?  the book doesn't accept the albums and foldlers i drag and drop.

    I'd suggest you ask this question in the iPhoto forums:
    iPhoto
    Posting here is unnecessarily limiting the people who'll see your question to those running iMacs.
    Regards.

Maybe you are looking for