![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi,
I'm sure this is fairly simple but I can't seem to find a good answer. All solutions require editing the devfs file and since these aren't in /dev it really wouldn't work.... I have a smb share on another server to hold all my music, when I am a user, I can not edit data in this mount point. I have this line in my /etc/fstab //tdonnelly@otter/music /mnt/Music smbfs rw,-N How to I make it so non root users can edit data in the Music directory? Thanks! -=Tom |
|
|||
![]()
Never dealt with this, but maybe the switches mentioned in mount_smbfs(8) are what you're looking for?
Quote:
|
|
|||
![]()
Hmm... where would I put this in my fstab though?
|
|
|||
![]()
Well, perhaps the same way you added that -N flag... *sigh*
//tdonnelly@otter/music /mnt/Music smbfs rw,-N,-g smbgroup |
|
|||
![]()
Hmm.... I don't think its an issue with the samba server as when I use Konqueror it works just fine (via smb:// rather than /mnt/Music).
changed my fstab to this Code:
//tdonnelly@otter/music /mnt/Music smbfs rw,-N -g 0 -u 1001 Code:
//tdonnelly@otter/music /mnt/Music smbfs rw,-N, -g 0, -u 1001 Code:
Barracuda# ll /mnt/ total 22 drwxr-xr-x 1 root wheel 16384 Dec 31 1969 Music Last edited by tad1214; 6th July 2008 at 08:38 PM. |
|
|||
![]()
Sorry, my mistake
![]() Of course, fstab handles whitespace as delimeters between the various fstab fields. So if you need to specify options that require further parameters, you will require some sort of workaround. I don't know how the fstab is parsed, so maybe even this solution may help: Code:
//tdonnelly@otter/music /mnt/Music smbfs rw,-N,-g\ 0, -u\ 1001 Another way would be to create a script in /sbin that does the dirty work for you. E.g. create something like mount_smbfs2 which then calls mount_smbfs with the correct options and in the fstab provide smbfs2 as filesystem type ![]() |
|
|||
![]() Quote:
Mounted in /home/TDonnelly/music/ RW access. |
![]() |
Tags |
mount_smbfs, samba |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOWTO: mounting an USB device as normal non-root user in OpenBSD | J65nko | Guides | 6 | 20th May 2017 12:03 PM |
Startx executes as root, "startx:not found" as user | Mr-Biscuit | NetBSD Installation and Upgrading | 4 | 27th May 2009 08:44 AM |
root: unknown user | roddierod | FreeBSD General | 9 | 28th April 2009 10:18 PM |
Run daemon as other user than root | phreud | FreeBSD General | 8 | 11th November 2008 04:11 AM |
Mounting samba share as normal user | rex | FreeBSD General | 4 | 27th October 2008 05:17 PM |