Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a Samba Share which is mounted on various linux systems throughout the network. Whenever any of my user access those files using vim, Gedit it works fine and get perfect permissions to read/write those files. but whenever they try to open with any php IDE (quanta plus, geany, eclipse-pdt) they get error while saving those files. I dont think it is a permission or samba issue because we are able to edit/save those files using normal editors..
All I can suggest is that these IDEs are opening up with the permissions of another user or group. 'You' is a relative term in Unix, and when it says "You don't have permission to write in the file" it's really talking to the IDE, and not you.
Computers can be frustrating, but they don't lie (well, IBM iSeries sometimes lie, but that's another story)...
But i tried changing the permissions to 777
still it is not able to save..
Sorry, it's a permissions issue. The web-based editors are trying to write as the web-engine user, with the limitations of that user, and the fact that you're going through the web interface. For example, if you don't EXPLICITLY tell Apache to follow symlinks, it won't...and you'll get permission denied messages, even if you're running Apache as root, with 777 permissions on that directory.
Try setting a directory alias, or define the UNC path.
Code:
Alias /test/ "//server/share/data/webroot/test/"
OR
<Directory "//server/folder/subfolder"
Be aware that 'special' characters (like $, spaces, (), etc.), are going to cause problems if they're in the directory name. Make sure the directory doesn't have those chars in it.
Sorry, it's a permissions issue. The web-based editors are trying to write as the web-engine user, with the limitations of that user, and the fact that you're going through the web interface. For example, if you don't EXPLICITLY tell Apache to follow symlinks, it won't...and you'll get permission denied messages, even if you're running Apache as root, with 777 permissions on that directory.
Try setting a directory alias, or define the UNC path.
Code:
Alias /test/ "//server/share/data/webroot/test/"
OR
<Directory "//server/folder/subfolder"
Be aware that 'special' characters (like $, spaces, (), etc.), are going to cause problems if they're in the directory name. Make sure the directory doesn't have those chars in it.
Sorry but i am not trying to work through any web based editor.. I am using quanta editor which is same as any other editor like gedit and vim. the difference is it is a IDE and give features like dreamviewer in Windows. I guess the problem could be of lock, actually the Vim/Gedit doesnt create lock in a file where quanta plus do..
Well, it may be something to do with the fact that these things are using a 'save' dialogue, then, rather than just piping the file down onto the disc. Something cmmon to all the desktop sessions, and all the GUIs used, which isn't talking the correct dialect of the CIFS protocol, that the Windows box needs.
Are all users using the same type of desktop? Same version? Is it Gnome, KDE, or something else?
(Gnome's GtkFileChooser, which lies at the heart of the Open/Save functionality of most Gnome desktop software, is widely reviled for many reasons, and this may just be a new reason.)
And what is the exact error, you're getting back? I presume the error is coming back from Windows itself, so does it have one of those totally-ungeeky hexadecimal error codes, that Microsoft is so fond of showing its users?
At this stage, I think anything that could be Googled, to identify which software, in the chain, was actually generating the message, would be useful.
Well, it may be something to do with the fact that these things are using a 'save' dialogue, then, rather than just piping the file down onto the disc. Something cmmon to all the desktop sessions, and all the GUIs used, which isn't talking the correct dialect of the CIFS protocol, that the Windows box needs.
Are all users using the same type of desktop? Same version? Is it Gnome, KDE, or something else?
(Gnome's GtkFileChooser, which lies at the heart of the Open/Save functionality of most Gnome desktop software, is widely reviled for many reasons, and this may just be a new reason.)
And what is the exact error, you're getting back? I presume the error is coming back from Windows itself, so does it have one of those totally-ungeeky hexadecimal error codes, that Microsoft is so fond of showing its users?
At this stage, I think anything that could be Googled, to identify which software, in the chain, was actually generating the message, would be useful.
Yes all the desktop are having same OS... Ubuntu 9.10.. they are using GNOME..
Today i checked one more thing.. i umounted the samba drive and used it connect to server option.. and it was working smoothly... i guess there is some problem with mounting only... i tried to use both smbfs as well as cifs... it says you dont have permission to save the file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.