![]() ![]() # chown exampleuser:exampleuser /srv/smb/www # chown -R exampleuser:exampleuser /var/www Change the rights of www to that new/specific user.# usermod -s /usr/sbin/nologin -d /srv/smb/exampleuser exampleuser create a user, then remove his rights and put him in jail.# mount -o bind /var/www /srv/smb/exampleusername ![]() bind /var/www to /srv/smb/exampleusername, so you dont need to reboot to take effect of fstab.var/www /srv/smb/exampleusername none bind 0 0 Hint: You dont need step 1 to 4 when using an exsisting user. Maybe you want to create a new account for editing webpages via samba only. Contact the administrator of this server to find out if you have access permissions. You might not have permission to use this network resource. But after entering password I get the error \\s1\dev is not accessible. I can access /samba/share but cannot access the dev share.ĮDIT: Now the windwos system asking to enter password. ![]() You do not have permission to access \\server1\dev I have also added a samba user by following this tutorial, but when I attempt to access this share from windows 7 machine, I receive the following error message: Windows cannot access \server1\dev. So I am tried to access the dev share using a password. I changed the owner of folder /var/file: I installed ubuntu server and I am trying to give the /var/www/html/dev directory read and write permissions from other computers (ex: windows 7 and ubuntu desktop). The above output shows that the service has been started successfully.My issue is similar to the stackoverflow question, virtual centOS 6.2 - How to share /var/www using Samba, however I am getting the following error: Windows cannot access \server1\dev You do not have permission to access \\server1\dev Jan 21 13:27:31 systemd : Started Samba SMB Daemon. ![]() Jan 21 13:27:31 update-apparmor-samba-profile : Reloading updated AppArmor profile for Samba. & #x25CF rvice - Samba SMB Daemon Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled ) Active: active (running ) since Fri 13:27:31 UTC 5s agoĭocs: man:smbd (8 ) man:samba (7 ) man:smb.conf (5 ) Process: 617106 ExecStartPre =/usr/share/samba/update-apparmor-samba-profile ( code =exited, status =0/SUCCESS ) Main PID: 617118 (smbd ) Status: "smbd: ready to serve connections." Tasks: 4 (limit: 4624 ) Memory: 7.0M
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |