How to unlock a file

unix

    Sponsored Links

    Next

  • 1. dvfs on ultrasparc t2?
    Hi, Is there dvfs control on ultrasparc t2? Can we do explicit CPU voltage level assignment in solaris 10? Thanks. -Simon
  • 2. installer for scripts/jars/text files
    hello, We have an application with jars, unix shell scripts, tcl scripts and text files. Now, what is the recommended way to package up all these types of files/dirs so that it can be installed in a separate solaris box? There are a few tools like install anywhere, etc, but I'm looking for something simpler that will handle all file types, etc. Thanks for any pointers!
  • 3. simple file versioning with logadm?
    I want to keep previous versions of files in case they are needed for a quick restore, for example, /etc/group could get clobbered if someone is not careful about how they edit it. This is similar to log rotation but we're not managing an growing log so we don't want to do it from cron, but only when needed. Is there a single command line that will perform the versioning function (with expiration and the other relevant logadm features) but not truncate the file to zero length?
  • 4. Compiling with 64-bit libcrypt on Solaris x86
    I am running Solaris 10 x86 10/08 on an X2200M2 using Sun Studio 12 C compiler. I am compiling a 64-bit shared library and need to use the 64-bit libcrypt library. When I compile in 32-bit mode, I use the "-l crypt" option on my compile command. This same option for a 64-bit mode compilation gives me the error: ld: fatal: library -lcrypt: not found I noticed the following symlinks under the /usr/lib directory: /usr/lib/libcrypt.so -> libcrypt_d.so /usr/lib/libcrypt_d.so -> ./libcrypt_d.so.1 The corresponding symlinks are not under /usr/lib/amd64. I have been able to get my 64-bit compile to complete successfully by using the compile option "-l crypt_d". Is this the proper way to handle this issue? Anyone have a better (or correct) way of getting this 64-bit compile to work?

How to unlock a file

Postby kaka.hui@gmail.com » Fri, 22 Sep 2006 08:04:20 GMT

I have a DNS master file which is locked by someone.  When I used co -l
to checkout the file.  The system prompt if I want to remove the lock.
If I enter "y" for yes, it still does not unlock the file.  I am also
unable to locate the rcs.  Could someone please advise how can I remove
the lock?  Thanks!

[us-rws-home2/var/named/master]# co -l dev.blah.com.db
RCS/dev.blah.com.db,v  -->  dev.blah.com.db
revision 1.151 (locked)
writable dev.blah.com.db exists; remove it? [ny](n): y
done
[us-rws-home2/var/named/master]# co -l dev.blah.com.db
RCS/dev.blah.com.db,v  -->  dev.blah.com.db
revision 1.151 (locked)
writable dev.blah.com.db exists; remove it? [ny](n): y
done

[us-rws-home2/var/named/master]# which rcs
rcs: Command not found.
[us-rws-home2/var/named/master]# which rcsclean
rcsclean: Command not found.


Re: How to unlock a file

Postby Tim Bradshaw » Fri, 22 Sep 2006 18:48:18 GMT

This isn't really anything to do with Solaris, but.




At this point who owns the file?  My guess is you do, and you have a
lock on it


And now it's complaining because you've already got a lock.

--tim


Re: How to unlock a file

Postby Richard B. Gilbert » Sat, 23 Sep 2006 06:15:50 GMT




man fuser

Similar Threads:

1.[BUG 2.4] NFS unlocking operation accesses invalid file struct

2.Locking & Unlocking mechanism in UNIX shared memory

3.Locking & Unlocking mechanism in UNIX shared memory

I have a set of processes which work on a shared memory.The shared memory
is loaded with the data retrieved from table.I want to know the system
calls to lock & unlock a part( say a record) of the shared memory, so
that other processes should be allowed to access other records
available in the memory when this process locks its memory segment.



Return to unix

 

Who is online

Users browsing this forum: No registered users and 83 guest