Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

samba need permission question #540

Open
Cr0iX opened this issue Mar 11, 2017 · 5 comments
Open

samba need permission question #540

Cr0iX opened this issue Mar 11, 2017 · 5 comments
Labels

Comments

@Cr0iX
Copy link

Cr0iX commented Mar 11, 2017

Hello,
I cannot get it to work with samba, when i try to create or delete a folder it works, but when i try to copy a file to the share it says permission denied?

I've mounted the drive with this:
acd_cli mount -ao --umask 000 --gid groupid --uid userid /dir/mountpoint

Btw. it works on the encrypted drive, but i would like some files not to be encrypted..

Regards
Cr0iX

Love your work!

@yadayada yadayada added the FUSE label Mar 11, 2017
@bu3alwa
Copy link

bu3alwa commented Mar 17, 2017

do you get a permission denied when you copy a file into it without samba? Or is it strictly happening in samba?

@Cr0iX
Copy link
Author

Cr0iX commented Mar 17, 2017

madmanali93:
It only happens in samba.
This is my samba share config:

[Amazon-Encrypted]
comment = amazondrive
path = /amazon-drive/encrypted-mountpoint/
public = no
writable = yes
browseable = yes

@bu3alwa
Copy link

bu3alwa commented Mar 17, 2017

are you able to copy anything if you change the path to a non acd folder?

@Cr0iX
Copy link
Author

Cr0iX commented Mar 18, 2017

Yes i have serveral other shared folders and none of them have any problems.

@MrColdbird
Copy link

[global]
server string = YOURSERVERNAME
workgroup = WORKGROUP
netbios name = %h
guest account = amazon
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
smb ports = 445
max protocol = SMB2
min receivefile size = 16384
deadtime = 30
os level = 20
mangled names = no
syslog only = yes
syslog = 2
name resolve order = lmhosts wins bcast host
preferred master = auto
domain master = auto
local master = yes
printcap name = /dev/null
load printers = no
browseable = yes
writeable = yes
printable = no
encrypt passwords = true
enable core files = no
passdb backend = smbpasswd
smb encrypt = disabled
use sendfile = yes
security = user
map to guest = Bad User

[amazon]
comment = Amazon Drive encfs
path = /your/encfs/mountpoint
available = yes
browsable = yes
writable = yes
public = yes
guest ok = yes


Adjust the share path and servername as required.

The settings I've used also help in stabilizing fuse-fs uploads a bit, anything up to 500mb filesize should upload fine with those settings, beyond that you will get "network timeout errors" reported by windows.

Make sure to run your amazon and encfs mount under a newly created service user, I personally use a systemctl service script to pull up my mounts and keep them mounted, in my case this user is called "amazon".

By mapping the "Bad User", aka. guest account to this amazon linux user, it also takes care of any permission issues you might be facing while using the share.

Optionally, you might also want to turn on allow_other in the fuse settings, so that you can mount fuse filesystems in a better fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants