hi,
maybe want doesn't make sense (in case you're welcome point out), second opinion.
i've been trying share folder samba. folder decrypted version of encfs encrypted folder. mounting decrypted folder on server done automatically on login using gnome-encfs. exposing folder locally works charm.
stuck trying access samba share client (even smbclient on server itself). can see share smbclient -l:
tijm64@tijm64-htpc:~$ smbclient -l 192.168.1.100
enter tijm64's password:
domain=[tijm64] os=[unix] server=[samba 3.4.7]
sharename type comment
--------- ---- -------
tijm64-htpc disk tijm64 home
tijm64-media disk tijm64 home
ipc$ ipc ipc service (samba server 3.4.7)
domain=[tijm64] os=[unix] server=[samba 3.4.7]
server comment
--------- -------
tijm64-htpc domestic samba
workgroup master
--------- -------
tijm64
both tijm64-htpc , tijm64-media encfs encrypted folders, difference between 2 shares tijm64-htpc in fact subfolder of en encrypted local homedir of user tijm64, marked public in encfs (since root can access in terminal, not decrypt it, see http://www.linux.com/archive/feature/114147). tijm64-media on other hand encrypted user tijm64, not homedir, , not marked public.
accessing both shares smbclient gives following result:
tijm64@tijm64-htpc:~$ smbclient //192.168.1.100/tijm64-media -u tijm64 -w tijm64
enter tijm64's password:
domain=[tijm64] os=[unix] server=[samba 3.4.7]
tree connect failed: nt_status_bad_network_name
tijm64@tijm64-htpc:~$ smbclient //192.168.1.100/tijm64-htpc -u tijm64 -w tijm64
enter tijm64's password:
domain=[tijm64] os=[unix] server=[samba 3.4.7]
smb: \>
so: can access tijm64-htpc (the public one), not tijm64-media.
suspect (though couldn't find clear description of limitation) due fact encfs folder not marked public, not able shared through samba, since samba daemon runs root.
questions:
- conclusion correct?
- alternatives?
- sharing encrypted version of folder work, , have decrypted on client side using encfs.
- can mark encfs folder public , still automount gnome-encfs (i don't see how)?
- other (preferably simpler) options?
input appreciated, if confirm thoughts.
andy
by way, here smb.conf definitions 2 shares (since 1 of 2 works, , defs similar, didn't bother pasting of conf file, should there need, shout):
[tijm64-htpc]
comment = tijm64 home
path = /home/tijm64/shares
valid users = tijm64
public = no
writable = yes
create mask = 0600
[tijm64-media]
comment = tijm64 home
path = /data/tijm64/media
valid users = tijm64
public = no
writable = yes
create mask = 0600
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [all variants] problem sharing an encfs non public folder with samba
Ubuntu
Comments
Post a Comment