Software :: How Does File Locking Work

Apr 21, 2011

I have a situation in an office where a LAN will be installed - what I want to know is, after that, can 2 people open the same spreadsheet file, i.e. the person on the computer that it's on, as well as somebody across the LAN?

View 4 Replies


ADVERTISEMENT

Programming :: Can Two Threads Safely Work On A Linked List Without Locking

Nov 9, 2010

I have a linked list that two threads work on simultainiousley.The first thread is adding elements to end the linked list while the second is removing them from the front. Can this be done without a lock on the linked list head when elements are beingadded/removed?

I think this lock is causing a performance hit to my application. If there isnt any safe way without it then thats fine but just thought I would check.The first thread uses this fuction to add elements to the list. Full source here. [URL]

Code:

/* Lets add the new packet to the queue. */
pthread_mutex_lock(&workers[queuenum].queue.lock); // Grab lock on queue.
if (workers[queuenum].queue.qlen == 0){ // Check if any packets are in the queue.

[code]...

View 8 Replies View Related

Fedora :: Need File Locking Sofware

Mar 8, 2010

I need file locking software or command for my project

View 1 Replies View Related

Ubuntu :: Turn Off File Locking In OpenOffice 3.2?

Jun 23, 2010

I am wondering if anyone has figured out how to turn off the file locking in openoffice 3.2. I have been searching the net for solutions, trying out the fixes, and as of right now I have not been able to find a way to stop the creation of lock files.

I have tried editing both /usr/bin/soffice and /usr/lib/openoffice/program/soffice as described in the links (below), but this has not helped.

Here are the relevant links I have found

[URL]

According to this thread, the method I tried (setting SAL_ENABLE_FILE_LOCKING=0) was based on earlier versions of openoffice.org It no longer works because as of openoffice.org 3 the file locking is built into the program.

[URL]

View 2 Replies View Related

Slackware :: Terminal Server And File Locking?

Apr 14, 2011

The setup is a central PC with XDMCP getting connections from two peripheral PCs. All PCs have normal Slackware installations (12.0 the central one, 13.1 the others). XDMCP works fine and the users login to KDE. The users have a common directory with appropriate permissions for group work.The problem is file locking. More than one users can open and work on the same file in the common directory, eg. foto editing the same jpg with GIMP.

Googling around I found that file locking is advisory in Linux, meaning its up to the applications to honour it. Also that there is a mand (mandatory locking) mount option which seems like the solution, but there are warnings [1], [2]. Other finds point to the use of versioning systems (svn, git) to take care of file locking, or network file systems (cifs, nfs): I'd prefer not to burden casual users with having to come to terms with a versioning system, and the network file systems seem wrong since the users work locally.

Considering Linux is a multiuser OS I am taken aback from this apparent lack of file locking support and tend to think missing something obvious.Has anyoneexperienced/solved a similar setup?A couple of last points. The common directory is on a normal mount (ext3, RAID1), fstab entry:

Code:
/dev/md0 /data ext3 defaults 1 2
And I'm aware of options like TSLP, but I'd rather resolve the issue generically.

[code]....

View 4 Replies View Related

Ubuntu Security :: File Locking Software For System?

Mar 8, 2010

I need a file locking software or atleast any command for file locking

View 1 Replies View Related

Server :: /usr/bin/xauth: Timeout In Locking Authority File?

Jun 3, 2011

[URL]

We have the same problem but tried his solution to no avail.

Doing a shh would give me an error..

Quote:

usr/bin/xauth: timeout in locking authority file /var/www/html/felipe/.XauthorityServer sent command exit status 1

When I change SElinux to permissive from enforcing I can login but turning back to enforcing, the problem comes back. I did the following...

Quote:

[felipe@nimitz ~]$ ls -Z .Xauthority
-rw-------. felipe felipe unconfined_ubject_r:httpd_sys_content_t:s0 .Xauthority
[felipe@nimitz ~]$ ls -lZd
drwxr-xr-x. felipe apache system_ubject_r:httpd_sys_content_t:s0 .
[felipe@nimitz ~]$ ps -eZ|grep sshd

[code]....

I tried to create a new user with the default directory in /home and it work fine.

View 1 Replies View Related

General :: Error In Locking .Xauthority File ... Continued From Previous Post?

Apr 27, 2011

I agree deleting .Xauthority files work, but thats not a good solution. I mean, everytime I have to run any X forwarding application I have to delete the .Xauthority file. Here is my scenarioThe applications that I want to run are on Linux Server [NFS] and the client machines [CIFS] that are having problem in locking theXauthority files are Macs which share the same domain as that of client solaris machine. i.e. The home directory of particular user on Solaris & the home directory of that user on Mac have same contents.When I ssh -X from Solaris to the server, everything works fine, no error messages.When I ssh -X from MACs to the server, I get the following warning messages.

Code:
/usr/X/bin/xauth: error in locking authority file /home/user/.Xauthority
/usr/X/bin/xauth is the path on the server. If I try to break the lock by sudo

[code]....

View 3 Replies View Related

CentOS 5 :: File Based Locking Initialization Failed - No Volume Groups Found

May 5, 2011

I'm working on a kickstart install to automate a lot of monotony doing installs. When i use the kickstart install i get an error on boot saying "File based locking initialization failed" "no volume groups found". Then it proceeds to boot up with no issues and appears to work just fine. Below is the section of my ks.cfg for creating the partitions: %include /tmp/partition.cfg is included where the partition info usually occurs. The user is prompted in the pre script for how large they would like the partitions to be and then the script below creates the included file with partition info

[code]...

View 3 Replies View Related

CentOS 5 :: Error "timeout In Locking Authority File /root/.xauthkk661q" Message When Starting Vnc-server

Jun 17, 2011

I have installed vnc-server on my CentOS 5.6 virtual machine. I can connect to it with a java web browser so it seems to be working. However, I get the following error message when I start, stop or restart the vnc-server process. Quote: Starting VNC server: 1:ken xauth: timeout in locking authority file /root/.xauthkk661q

View 5 Replies View Related

Fedora :: 15 Locking Up On Thinkpad X41

Jun 2, 2011

I've recently installed F15 on my old thinkpad X41 to give it a go after sticking to ubuntu for quite a bunch of years now.

Somehow there seems to be a problem with the installation tho: the screen freezes up (as does the keyboard) after a while using it - not many programs open, a couple of workspaces enabled, no memory or CPU stress whatsoever - and all i'm left with is a moving mouse cursor. Ctrl + alt + F2 doesn't work and the only solution is to restart the laptop again.

Tried the fallback mode and same thing still happens, so maybe its not a graphic card issue.

View 1 Replies View Related

Fedora Hardware :: 15 Keeps Locking Up

Jun 23, 2011

My computer keep locking up when I try to open a new tab in Google Chrome. It locks up when I do other stuff too but it does not stay locked up. When it gets locked up from Chrome I have to fix it by doing Ctrl + Alt + Backspace. It only happens sometimes though. I can open new tabs sometimes without it locking up. I know it has something to do with my graphics driver (I have an ati). When it locks up I can't do anything and then like 10 seconds later I can move my mouse but that's it, everything else is still frozen. That's when I do Ctrl + Alt + Backspace. Here is what the messages log file says:

Quote:

Jun 22 17:47:31 hostname kernel: [12767.018056] radeon 0000:01:00.0: GPU lockup CP stall for more than 10000msec
Jun 22 17:47:31 hostname kernel: [12767.018058] ------------[ cut here ]------------

[Code].....

I changed the real host name of my computer to hostname.

View 1 Replies View Related

Ubuntu :: How To Trace GUI Locking Up

Jan 1, 2010

I just did a fresh install of Kubuntu 9.10. The GUI regularly locks up. I can SSH to it from another machine everytime it locks up. Top shows Xorg consuming 99% cpu. I think downgrading the nvidia driver to 173 from 185 helped reduce the lockups. Before they seemed very random and very often. Now it seems to happen when copying a large amount of files over the network but I'm not entirely sure. It ran the electricsheep screensaver all day today with no problems and the RSS euphoria GL screensaver all day yesterday. If I copy 2GB of files from one local directory to another no problem, if I do it through cifs mounted samba shares it will lock up for sure. Small amounts seem ok. Apt-get install has had some lock ups too.

I don't really know how to trace what's going on beyond installing ssh and finding out that it's totally alive inside. I don't know what to look for in log files nor which ones to look at. I didn't recognize anything wrong in Xorg log. In the system log I look for the time gap between when it locked up and I shut down and when I rebooted but I didn't notice anything.

View 1 Replies View Related

Ubuntu :: X Is Locking Up System

Feb 4, 2011

I first started experiencing it when I would leave my computer logged in overnight.I would come in and find the screen frozen and flickering. When I ssh'd into the machine, I could see that Xorg was using 100% of the CPU and a ton of memory. I could kill kdm, but not Xorg. Only a full reboot would cure it.When it would reboot, my second monitor sometimes would not work and it would take several reboots to get it up and running. Recently, I was working in matlab and had Xorg freeze on my numerous times...always when I had my second monitor up and running.

The card in question is an Nvidia 9800 GX 2.It almost seems like GPU0 (the one running the second monitor) is dead or dieing and is causing instability when it is up and running..but I've also heard that X running away and locking up the system is a known bug.

View 9 Replies View Related

Ubuntu Security :: Locking Down 10.04

Jul 25, 2011

I know that Ubuntu doesn't need antivirus, and a firewall isn't imperative.

I would, however, like to know what I could do to make my Lucid box a bit more secure, as I'm using it as my work system.

View 6 Replies View Related

Debian :: Lenny - Locking Up ?

Dec 28, 2010

I installed with no problem. I have 2 hd's one with winxp3-32bit the other with debain-amd64. When i move a window on the desktop or try to scroll in a window the text gets out of whack and computer locks up.

asus a8n32 sli deluxe mobo
2 nvidia 7800gt's...in sli
segate barraccuda 500g hd(winxp)
wd 200g hd(linux)

View 5 Replies View Related

Security :: Locking Down A Nameserver

Mar 27, 2010

Ok, one more question on nameserver security. So I was reading this post and it recommended not setting a defined outgoing port for your nameserver due to the Kaminsky vulnerability.What is the proper way to lock down a nameserver, but avoid the vulnerability of only allowing incoming and outgoing requests on port 53

View 3 Replies View Related

Programming :: Resources Locking In C?

May 9, 2011

I am going to write two or more programs that will take control of the same resources on Linux. What are the common methods/functions that can do locks/synchronizations in C?

View 1 Replies View Related

CentOS 5 :: Locking A TWM Session

May 6, 2010

I have to run a graphical session for using something with wine on a server (unfortunately :((( ) and I'd like to run a TWM session. As I would like to lock the session, I settled things to log on from XDM. However, I can't find anyway to lock the session. Is it possible (I guess yes) ? How can it be achieved?

View 3 Replies View Related

Fedora X86/64bit :: F12 Locking Up On Boot

Nov 19, 2009

I added the rpmfusion repos so that I could install the nvidia drivers and downloaded whatever updates appeared. Initially after rebooting, I kept getting "No root device found" which I've managed to solve but now it keeps locking up after "Starting atd". That actually manages to load and then it locks so I'm guessing that it's "S99livesys" that is causing the problem.From googling, this appear to be a problem with certain kernels and can be resolved by either using an older kernel image or turning the process off in the command line. My problem is that this was a fresh install so there's only one kernel image so it's impossible for me to use a different one. For the same reason, I can't get into the command line.

Is there anyway to get around this without re-installing?I don't want to have the same issue if I re-install?Can I download the kernel images and just place them in /boot?

View 2 Replies View Related

Fedora :: F13 I686 Box Keeps Locking Up Without Crash?

Jun 7, 2010

I upgraded from F12 i686 to F13 (I should say clean install). And now ever so often my computer locks up...... I will wait for an update or something this week but if it continues after I may have to go back to F12 (on another HDD)

View 10 Replies View Related

Ubuntu :: Locking Screen At Startup?

Mar 28, 2010

I looked for this but couldn't find it.

When Gnome starts, I would like to auto-login a user account, but I and the screensaver to lock at boot. I am using the gnome-screensaver.

View 3 Replies View Related

Ubuntu :: 8.10 Crashing / Locking Up After Login

May 1, 2010

So is this what I get for not upgrading because the support for 8.10 ends on 4/30? I have 8.10 but it is locking up immediately after logging in. It's a 64 bit system and has worked flawlessly up to this point. Ctrl-alt-BS does not work. Alt-Sys-K does not work. Alt-Sys-R, E, I, S, U, E does not work. Only turning off the power resets the computer. Memtest turned up nothing.

View 1 Replies View Related

Ubuntu :: Locking Printer Config

Jul 24, 2010

I run 6 machines at our local library with Ubuntu Lucid. Here is a problem. We use a network printer accessed through the ethernet cabling system. It isn't attached to a computer. I want to set it up so the Ubuntu computers find it by ip address, it has a static address. Then I would like to lock down the printer config as each week other printers show up there, all basically the same printer but only works if the patrons pick the correct iteration of it and it doesn't always stick to the default option I haver set up. So people get confused and then pick another one and no prints. I want them to click print and bingo only one printer shows up and it is the ip address I have set up. Ubuntu seems to love to add numerous copies of printers and in this situation it is creating havoc. So can I somehow set a command to lock the printer config and eliminate all this confusion? I hope this is clear as it is a fairly complicated issue.But is reflecting poorly on Linux to people who come in and I want it to b e very stable.

View 9 Replies View Related

Ubuntu :: After Locking Desktop Not Asking For Password?

Aug 25, 2010

After locking desktop not asking for password I am using Ubuntu 10.04 TLS from a pen-drive (running Ubuntu example). I created a new user account When I lock desktop it correctly turnout the screen (everything go dark). When I move the mouse Ubuntu returns perfectly. My problem is that in any time I am not asked for password. I want that Ubuntu while locking ask for password to login again. I already tried configuring lock down and lock properties (application) via gconf-editor.

View 3 Replies View Related

Ubuntu :: X And System Locking Up/crashing

Dec 14, 2010

first of some specs;
kernel 2.6.35-23-generic
64 bit amd turion dual core
toshiba satellite about 6 months old
4gig ram (oddly only 3.1gig shows up :/)
ubuntu 10.10
ATI GPU

how to get it and i will get it

alright the problem is every now and then my system locks up and i try things like ctrl+alt+Fn and ctrl+alt+del and ctrl+alt+backspace but nothing works exsept when hold down the power button for a hard reset and occasionally somthing else happens that can only be comppared to a BSOD in windows but with out the blue screen it just goes to a screen with vertical grey stripes for 2 seconds ish then reboots

so i dont have the slightest idea of what it could be tho i think it could be something to do with the graphics chip maybe?

its happened quite a few times both in 10.04 and 10.10

if you want system logs i can attach them when ever

View 5 Replies View Related

Ubuntu :: Keeps On Randomly Locking Up And Freezing?

Mar 25, 2011

I noticed in the last month or so that Ubuntu keeps on randomly locking up and freezing.Most of the time Crtl+Alt+Backspace (zap X) does not work and I have to power down my PC manually.What has happened good old reliable Ubuntu? Its starting to p.i.ss me off now but luckily I haven't lost anything of value as a result of these lockups.

View 9 Replies View Related

Ubuntu :: Locking Icons In Docky?

Apr 7, 2011

I have used the guide that makes ubuntu look like osX, but is there a way to lock the icons on the dock, so they can not be removed?

View 2 Replies View Related

Ubuntu :: Locking Password And Start Up

Jun 18, 2011

I've tried to configure ubuntu 10.04.2 to start up without having to enter a password, thought I did all the correct things yet I get this 'lockring' thing where I still have to enter my password every single time I start up. I get past the first screen where I was having to enter a password when selecting user, (actually never set up a user, just using whatever the primary 'user' is, what is it called?)How do I disable the request for a password for this lockring thingy?

View 9 Replies View Related

Red Hat / Fedora :: Locking Down The Proxy Setting?

Feb 16, 2010

how to lock down individual users from setting a proxy server. Its a server not a WS so it should never go to the internet. I want to lock down the system side and firefox 5 settings. found this link but its a bit confusing. I want to lock the system and mozilla Locking preferences - MozillaZine Knowledge Base I tired this and put the local-setting.js in and now the firefox wont start at all. "failed to read the configuration file. Please contact your system administrator. well read several sites that all say to do the same thing but they are talking windows and mac so may be i am missing something being Linux...So what I did was create a file called

/usr/lib64/firefox-3.0.12/defaults/profile
more mozilla.txt
//

[code]...

Still get error.this link explains what the setting 0-5 are used for Network.proxy.type - MozillaZine Knowledge Base So i thought this might be a permission issue and did a 777 on the local-setting.js file. Still get the error.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved