Ubuntu Servers :: Sharing An Encfs Non Public Folder With Samba?
Jun 7, 2011
I've been trying to share a folder with samba. This folder is the decrypted version of an encfs encrypted folder. Mounting the decrypted folder on the server is done automatically on login using gnome-encfs. Exposing the folder locally works like a charm. Now where I get stuck is trying to access the samba share from a client (even with smbclient on the server itself). I can see the share with smbclient -L:
I recently installed Ubuntu 10.10 on my sister's HPtx2000 since she isn't going to use it anymore and it worked better than I expect. The touchscreen works without any additional driver tweaking and installation <3, the wireless works fine, the sound works. I listed those because when i was installing, I was looking around at other people that did this and those were the problems they had (but those was of an old OS).
Well anyways, what I want to ask is about the stuff that doesn't work and the stuff I want to do: The buttons that flip the screen and etc doesn't work. Is there a way to map them and flip the orientation of the screen? And the other buttons too, like the media button. Is there a way to map them to open VLC or something? Does anyone know any tablet programs for Ubuntu? E.g a simple text program that can convert stuff written to neat, typed font? A way to write text into a google search bar using the stylus? And while we're on this, is there a way to map a left click on the touch screen?
In Windows, the left click could be mapped to: a). a side button of the pen, b) the top button of the pen, and c) holding the pen down onto the touchscreen. how to use Samba to access a public folder of a Windows computer? And to access the printer connect to the Windows computer? Some of the tutorials I found were only for folders and printers on the Ubuntu computer.
I am running OpenSuse 11. It runs Apache webserver and Samba for filesharing. I am also running webmin. Everything works 100%. I have 2 shared folders that can be accessed by everyone. My question is how can I log in to the shared folder from a windows machine when I set the permissions for only a certain user to log in. My system hostname is Linux.site and my user is henk. I am not sure how I need to log in that way. Should the username be Linux.sitehenk ...
We have an Iomega StorCenter ix4-200d in our office. for past two days the shared public folder is not getting mounted. but it's working fine through the web interface i.e user can upload/download.that rules out the permissions problems.
I am providing the output of mount command:
t227@t227:/var/log$ sudo mount -t cifs --verbose //22.214.171.124/public /mnt/public/ -o username=shrey [sudo] password for t227: Password:
in fact i can't access any of the folder which I am having permissions to rw.but it's working fine through the web interface.
Originally Posted by van 2.0 If you are not having a problem with Samba and have nothing to offer the OP in his bid to solve the problem then your post is not relevant to the discussion. The reason I asked you to point out where SELinux has been mentioned is that those are the docs of an Enterprise OS and any relevant steps would be included.I see you are new to SELinux, but interrupting a post to point out something unrelated does not help, it just adds confusion and consternation.I think that, perhaps in your your zeal to serve as police officer of the relevance trees, you've failed to see the forest. It could be that I was not sufficiently clear in my first post here, so I'll explain it very, very slowly and carefully, so as not to cause any you any further confusion.
The original poster is unable to access his Samba shares. The original poster does not understand why and seems to think that it is configured correctly. Other posters have added suggestions about smbpasswd and testparm to check for correct syntax. Presumably, these things have not yet solved the problem, since the OP has not returned to say the problem is solved, though you linking to one of the first links that would appear in a google search for redhat and samba was no doubt wildly and extraordinarily helpful.
So, I had an idea. I recognized that, in a crazy plan to make a functional OS, the authors of Linux had allowed more than one binary to execute simultaneously. This means, that SELinux and samba can both run at the same time. Now, stay with me here - if SELinux is not configured to allow permissions for the samba user on the Samba share.... "permission denied" log errors can occur in Samba. Now, that sounds familiar for some reason. Hmmm... oh, yeah! That was what the original poster mentioned! And, I just dealt with that exact problem, caused by insufficient SELinux permissions!I knew there was a method to my madness.So, anyway, adopting your own ironically sanctimonious tone, I hope you've learned a lesson today that can improve the quality of your posting. This lesson is two-fold: (1) it's not especially good form to quibble with someone trying to help in good faith and (2) if you are going to, it pays to have something tangible to offer to go along with your condescension.No need to thank me - helping you be a better poster is its own reward, and I'm rapidly losing interest in anything you have to say in general, anyway. From what I've seen, it's not anything I couldn't find in under 10 seconds on google.
I want to share folder in fedora 12 so that any windows user can access my folder (without modifying its content) and there should be no password to be entered by the windows user. I tried samba gui but the folder does not open using windows.
I'm using ubuntu server 9.10 for a home build NAS. Everything is working great just have one more thing to figure out. I have Samba set up to access my files and I set up a recycle feature so anything deleted will get moved to a Recycled folder. (I learned this the hard way after hitting delete key by accident while browsing the shares in windows. Lost 100 GB of data)
Now it is for the most part working but the permissions on folders isn't getting set right. If I delete a file in a share I can go to Recycle bin folder and delete the file for good. But if I delete a folder I can not access that folder to delete or restore from the Recycle bin folder. I have to chmod the folder before I can do anything with it. Anything I can change to get folders deleted via windows to have the right permissions when it is moved to the Recycle bin folder?
I'm evaluating OpenSUSE and have installed 11.3 with Gnome (from the latest liveCD) and have it all running fine in a VM at the moment. We are looking at using it for an iSCSI/NFS/Samba server and have it allrunning and it is all configurable from Yast. However I can't seem to get Nautilus to play ball and allow sharing of Samba/NFS shares under folder properties (I'm fairly positive I've done this fine in Ubuntu). All I ever get is Usershare/Gnome sharing (which I believe is Webdav).
I must say I am so impressed with OpenSUSE, the partition manager is just a dream to use and everything works really well it would just be really nice to be able to share NFS/Samaba shares from the file manager. There doesn't seem to be any other file managers in the repositories so I'm a bit stuck now.
I am an old Ubuntu user and have just strted running F11 on my iBook. I always run system-config-samba on all my machines including my server and even on my work server which shares with windows, Linux and OSX and have found it to be perfect. I installed it straight away on the new Fedora system but It doesn't seem to be functioning the way i expected it to.
I installed system-config-samba and then set up one share folder "Public" with open read write privileges and then turned off the Fedora Firewall all together. But "public" did not become open until I entered the user password for the fedora machine. But, then I could see all folders on the Fedora machine. Even root on the fedora machine became write-able on the network. This was not the desired effect at all. I am assuming fedora is using a non system-config-samba file share system that I am unfamiliar with. what is it? and how does it work?
I have an NFS share hosted at a file server for several machines. I set up an encfs encrypted file tree in this. First, I created a directory in the NFS mounted tree where I wanted the encrypted files to be store (/home/nfs/phil/private). Second, I created a mount point where I wanted to access those files in the clear view (/home/phil/nfs-phil-private). Third I mounted encfs with the simple command "encfs /home/nfs/phil/private /phil/nfs-phil-private". During this mounting, it asked me for a pass phrase to encrypt the files with. Fourth, I copied some files into "/phil/nfs-phil-private". I saw that files with cryptic names were created in "/home/nfs/phil/private", along with a file named ".encfs6.xml".
That was on one machine named "lorentz". Then I switched to another machine named "euler". I created the same mount point here (/home/phil/nfs-phil-private). I verified that /home/nfs/phil/private already existed, as did "/home/nfs/phil/private.encfs6.xml". So I tried the same "encfs /home/nfs/phil/private /phil/nfs-phil-private" command. This time it failed. Here is all the output up to the first prompt:
15:05:23 (FileUtils.cpp:375) Archive exception: stream error 15:05:23 (FileUtils.cpp:326) Found config file /home/nfs/phil/private/.encfs6.xml, but failed to load Creating new encrypted volume.
The first two lines certainly appear to be some kind of error. I can cat the .encfs6.xml files just fine, so I do have permission to read it. It had not even prompted me for a password, yet. Anyone know what the deadl with this is? A possible cause is that the first encfs is version 1.6.1 (ubuntu 10.10 packaged as 1.6.1-1) and the second encfs is version 1.5.2 (ubuntu 9.10 packaged as 1.5.2-1).
Now if a user (included in users) creates a new document in the visible folder, that will be
-rwxrwx--- 1 root users 0 2010-03-02 14:19 new file
While I would like it to be
-rwxrwx--- 1 user users 0 2010-03-02 14:19 new file
Mounting encfs without the option uid='0' gives same results with only difference that instead of root the owner is the user who mounted encfs. Also copying a file owned by different user rather than root goes to the same: for example having in my home a file like
-rwxr-x--- 1 me users 0 2010-03-02 14:30 myfile
and trying to copy it to the encrypted shared folder with
sudo cp -a -v ~/myfile /somewhere/visible
will give something like
cp: failed to preserve ownership for `~/myfile': Operation not permitted
And the copied file on the shared encrypted folder will be as usual:
-rwxrwx--- 1 root users 0 2010-03-02 14:30 myfile
Is there a way to mount encfs in order to preserve ownership?
I have samba allowing only known users, and on the ubuntu side, I have the folder permission 777. I have the same exact samba smb.conf file(locations of course matching new server), but I can't get it to authenticate with the new server(Old server is up and running too) and I'm lost. I thought I had it figured out when I did my last server, but I seem to be missing something on this one.
I got ubuntu samba server on server 10.04 username:user1 , Home folder: /home/user1 This user connects from a macbook pro no problem. I followed the same steps to set up user2 username:user2 , Home folder: /home/user2 This user does not connect from windows vista. I have the correct ports open, 137-139 & 445, and can connect from the macintosh, but not vista. The error says that the username or password is in correct. If you need some log files or config files, just let me know where to go and they're all yours!
I've installed Ubuntu Server 7.10 Gutsy and Webmin 1.500 on it. The thing that I want to do is: I want to share a folder an sub folders for windows users ( guest user) I should modify those folders from my ubuntu desktop 9.10 karmic they are all same folders. Is it possible? if yes how can i make it. you can tell from webmin or samba configuration file.
We have 10.x ubuntu server with XP clients. We have samba share folders at LAN. Is there any possibility that we can disable copy and paste option for some specific folders, while other data folders remain as usual in our shared data?
So I want to put some of my folders on my network. I open up nautilus and go to my home folder and right click -> properties-> share and then selected share this folder, made it so that others could modify stuff on it and have guest access (which is what I want), and changed the share name to "home". Then I clicked create share. I then went to Places->Network->******'s public files on [the name of my computer]. But then some stupid error message popped up saying:
"DBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)"
I want to use samba for file sharing like on a Windows home network. Actually they are all Linux machines but nfs is too complicated. On my host machine I installed samba and system-config-samba. I created a new share for /home, check marked writable and visible and put access to everybody. For preferences-->server settings--> security the "authentication mode" is set to user, encrypt passwords is no, and guest account is no guest account. Under preferences-->samba users I added myself as a user with the same windows user name as my Linux user name and the same password.
My client is a virtualbox fedora (used for testing purposes but actual clients will be real computers on my home network). I entered the address smb://192.168.1.184. When asked for the user name and password I put my regular user name and password since that was what I set in samba users. However, the password dialog keeps coming up and won't let met into my own computer. If I quit it says something like access is denied. How can I get my home network back? I liked this feature when my home computers ran XP but I switched them to Fedora 12.