Setting the sticky bit on a file fails in a zone

On initial inspection, the sticky bit on directories seem to be consistent across both the Global zone and local zone. However, they are inconsistent for files. Is this a bug, and if it is how to I raise a defect report?
Excerpt from chmod man page:
If a regular file is not executable and has {stick bit} set, the file is assumed to be a swap file. In this case, the system's page cache will not be used to hold the file's data. If the {stick bit} bit is set on any other file, the results are unspecified.
Solaris 10 update 4 (Global Zone).
# uname -a
SunOS mumble.amtest.com 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T1000
# chmod 1777 testfile
# ls -l testfile
-rwxrwxrwt 1 root other 0 Jul 11 14:24 testfile
# chmod 1770 testfile
# ls -l testfile
-rwxrwx--T 1 root other 0 Jul 11 14:24 testfile
# chmod 1000 testfile
# ls -l testfile
---------T 1 root other 0 Jul 11 14:24 testfile
Solaris 10 update 4 (Local Zone)
# uname -a
SunOS qatamos-z1 5.10 Generic_120011-14 sun4v sparc SUNW,Sun-Fire-T1000
# chmod 1777 testfile
# ls -l testfile
-rwxrwxrwx 1 root other 10 Jul 10 14:59 testfile
# chmod 1770 testfile
# ls -l testfile
-rwxrwx--- 1 root other 10 Jul 10 14:59 testfile
# chmod 1000 testfile
# ls -l testfile
---------- 1 root other 10 Jul 10 14:59 testfile

It isn't the fact that the bit isn't set. I guess the biggest complaint is that there is no error when trying to set the bit.
chmod returns success, even though it failed to set the bit.
Normally, if someone does not have enough privileges to modify permissions on a file, an error is returned.

Similar Messages

  • Set the archive bit on files in a folder?

    While viewing files on my Mac from Windows machines on my network, the archive bit seems to be set on the files in soe directories. Setting the archive bit from the Windows machine appears to work, but the bit doesn't really get reset, as a quick refresh of the directory shows.
    Is there a way to (re-)set the archive bit (or any of the read/hidden/system/archive bits) for files on a drive that is neither NTFS nor FAT32? Does OS X allow for the setting of these bits?
    -=b=-

    The attrib command isn't a PowerShell cmdlet:
    http://ss64.com/nt/attrib.html
    If you're asking which line of your script this should replace, the answer is 'the entire thing'.
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • How to set the 'Configuration Bits' in the PIC16F84

    I am using the PIC16F84 in a circuit and I'm programming the assembly for the PIC.  However I can't figure out how to set the configuration bits.  For example I want to select the LP Oscillator, turn the WDT off, turn the PUT on, and turn the CP off.  Normally if I was using the IDE from Microchip I would add the line:
    _CONFIG H'3FF0'
    However Multsim does not recognize this as a valid code.  In addition the P16F84.inc file contains the following definitions:
    _CP_ON                       EQU     H'000F'
    _CP_OFF                      EQU     H'3FFF'
    _PWRTE_ON                 EQU     H'3FF7'
    _PWRTE_OFF                   EQU     H'3FFF'
    _WDT_ON                      EQU     H'3FFF'
    _WDT_OFF                     EQU     H'3FFB'
    _LP_OSC                      EQU     H'3FFC'
    _XT_OSC                      EQU     H'3FFD'
    _HS_OSC                      EQU     H'3FFE'
    _RC_OSC                      EQU     H'3FFF'
    What is the code though to select which options you want to use?

    Try this code:
    _CONFIG _CP_OFF & _PWRITE_ON & _WDT_OFF & _LP_OSC
    I tried this in the assembler and it didn't return any error messages when compiling. I found this in a PIC Book that I downloaded off the internet.
    I hope it works for you. I am new to the MCU Module and learning about it so don't consider me an expert on it by a long shot.
    Have A Nice Day
    Kittmaster's Component Database
    http://ni.kittmaster.com
    Have a Nice Day

  • How should i set the baseURI when a db file path with a space

    if the db file in a path like c:\program file\myapplication,then i set the baseURI dbxml:c:\program file\myapplication ,some exception occur~what should i do ?
    thanks a lot

    The Base URI needs to be a valid URI, which means it cannot include the Windows '\' character at all. In your case, you should be fine using something along the lines of "file:////C:/program file/myapplication"
    (give or take a '/' or two -- I haven't tested this).
    It's a common for BDB XML users to confuse the argument to create/openContainer() (a filesystem path) with the Base URI (a URI). The meanings and requirements are different. The best thing to do is to set and use a container alias (XmlContainer::addAlias()) to use in your queries.
    Regards,
    George

  • Help, how to install jvm and set the classpath using a batch file

    hello,
    i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
    i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
    or is it advisable to explain it to the user how to go about it in tht user manual.
    and would also like to know that if i install the JVM will the path for the java.exe be set
    or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.

    hi,
    I have windows and I use it.
    The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
    Stijn

  • How do I set the folder to which temporary files are saved?

    As of now, whenever I click "Open with..." when downloading a file, a copy of that file saves to my desktop and never gets cleared. I'd like to set the temporary folder so I can manually clear it periodically, but the only file management option I seem to have is to set downloads to always save in a certain folder--which does not appear to include "temporary" files. How can I change the destination folder for temporary downloads? And why does Firefox download and save the files before opening them? I don't want to save every PDF I read online, yet this seems to be the default setting in order to open files.

    You probably need to set that temp folder in the Safari Preferences to set them for other programs.
    Safari > Preferences > General > Save Dowloaded Files To
    You can also set the Boolean pref browser.helperApps.deleteTempFileOnExit to true on the about:config page.
    See also http://kb.mozillazine.org/about%3Aconfig

  • How can I set the last mod of a file

    I get the last mod of a file (advanced file I/O palette -> File/Directory info)
    My problem is, that I download some files from a FTP-Server and the last mod of the downloaded file is not the same as on the ftp-server (the local file has always the time stamp from the downloaded date/time).
    I can list the timestamp from the files on the ftp-server, now I wanna change the last mod from my local file in the same as on the ftp-server.
    How can I make this?
    Thanks
    Regards
    Thomas
    Solved!
    Go to Solution.

    Hello TheDharmaInitiative,
    The "last modified" Attribute of a file can be altered programmatically using Windows API Functions.
    For LabVIEW i found a Post in a external Forum with some Sourcecode attached:
    http://www.labviewforum.de/index.php?s=c221d30094bfb9bd1edf87094f851b7f&showtopic=5895&st=0&p=28501&...
    For VB a Sourcecode Example can be found here:
    http://www.vbmonster.com/Uwe/Forum.aspx/vb/31547/Setting-a-file-s-timestamp
    To change the "last modified" Attribute manually a lot of Freeware and Open Source Tools are available:
    http://www.codeproject.com/KB/files/timestamp.aspx
    Regards
    Moritz M.

  • How to set the field size in rule file.

    i have to map total 30 fields in a rule file while by default it allows only 20 fields. so how can we set the fields as per our need?

    Hi Dharmendra Ojha,
    Essbase rule file does not constrain you with only 20 fileds.
    When you click on 'create a rule file', by default it ll show you 20 fileds .But , when you open a data file ( in your case , you data file has 30 columns i.e 30 fields) in the data prep editor , you ll see all 30 fileds .
    So ,you have to do nothing to increase the filed count , rule file will automatically show all fields .
    Revert back for further clarity
    Sandeep Reddy Enti
    HCC
    http://analytiks.blogspot.com

  • Setting the name of streamed zip file

    Hi,
    I have a servlet which creates a zip file with documents retrieved from a database. To create the zip file I am using the ZipOutputStream class and adding the documents one at a time to this object. This is all working fine.
    The problem I have is pretty simple, in that I can't seem to find a way in which to set the name of the zip file. This must be possible! At the moment it appears to be setting the name of the zip file to the name of the class that created it. In this case my class is called DocumentPacker and what comes back from the servlet is a zip file called DocumentPacker.zip. This wouldn't be so bad, but if you're creating the zip file for a user that does not have cookies enabled, it appends the session id to the end of the zip file name which i don't want.
    I am creating my ZipOutputStream like this:
    ZipOutputStream out = new ZipOutputStream(new BufferedOutputStream(response.getOutputStream()));
    and then adding the documents one at a time using a BufferedInputStream.).
    Any help on how to set the name would be much appreciated
    Thanks
    Claire

    Your servlet must set some headers on the HTTP response (Content-Type as "application/zip", Content-Disposition as "attachment; filename=yourfilename.zip")
    Read the RFC1806 document.
    Content-Type: application/zip
    Content-Disposition: attachment; filename=genome.jpeg

  • How to set the size of an Excel-file,Java created in tabbed forma

    Hi all,
    I'm creating an Excel-file by writing data to an outputStream in tabbed format.
    My problem is : How can I set the width of the columns of that Excel-file, not the default-size?
    If anyone can help, that would be very nice.
    Thanks a lot,
    Regards,
    Tim

    You can write a generic xls file containing a Macro to open and set the column widths of text or csv files. Your java program can then call this generic file to open your text files.

  • Setting the locale dynamically in .shell file

    Hi ,
    I am using <netuix:locale language="en"/> in .shell file for the header in Weblogic Portal 9.2 application.
    How i can set the language attribute dynamically as currently it is set to English that's why my header area always displays the text in English language for the first time when I login into my application.
    Looking forwar for the response
    Thanks in Advance
    Regards
    Gaurav

    Hi Guarav,
    The <netuix:locale> control is used within Portal Framework markup (.shell, .portlet, .portal, etc.) to specify the local for that resource's title and description. For example: if you have a file named headerFooter.shell, its English title might be "The Header-Footer Shell", and that's how you would identify the shell in the Portal Admin Tools. If you had users who spoke/read Spanish, you'd create a <netuix:locale> element for headerFooter.shell that had the title as "El Cabeza-Pata Shell" (or something :). What I'm saying is: that control only affects the localization of the title and description of that WLP resource itself, not its content.
    To change what language the text of your header uses, check out the i18n JSP tag library: http://download.oracle.com/docs/cd/E13155_01/wlp/docs103/javadocjsp/p13n/i18n/tld-summary.html.
    Hope that helps,
    George

  • How to set the classpath for external .jar files after importing?

    Hi techs,
    How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
    urgent

    I got it.
    after importing the jar file to the perspective,we need to right click on project name, go to proprties,
    goto java build path,
    there we need to include the external jar files.

  • Setting the proxy in a configuration file

    Hello All, Is there a configuration file where you can set http.proxyHost and http.proxyPort for a jsp web app (maybe web.xml)? I'm using tomcat 4.1. The web app in question is behind a firewall and needs to go through a proxy server to pull information from the internet. I'm looking for a way that doesn't involve setting the proxy parameters within the code of the web app. I've also read that you can set environment variables with "CATALINA_OPTS = -DproxySet=true -DproxyHost='proxy host' -DproxyPort=8080", will this work for my situation and in what file would I add this line?

    I may be wrong but I think that the "Use System Proxy Settings" makes sense only on Linux and generally speaking "other OSes". As far as I know there is no generic proxy settings in Windows operating system.
    The one I know is in the registry part of Internet Explorer.
    So in my understanding in Windows, Use System Proxy Settings = No Proxy

  • How can I set the SRQ bit on GPIB with LabView ?

    Hello,
    I am developping an application with LabView RT on a PXI RT system. This application acts as an instrument (non controller GPIB), and I need to assert the SRQ line. How can I do that ?
    I know the ibrsv function, but I can't find it in LabView, and I can not use it through a DLL call since GPIB DLLs are not compatible with Real-Time.
    Thank you.

    Hello Alfonso,
    It sounds like you might be getting errors -200279 and -200278.  (In the future, if you post the actual error codes, it helps us to know exactly what is happening).  Error -200279 happens when you are performing a hardware-timed acquisition (meaning the data is sampled according to a clock signal on your board), but your LabVIEW program is not reading the values from the buffer allocated for that task in computer memory fast enough.  Basically it's a buffer overflow error.  It means older samples have been overwritten before you attempted to read them out.  As the error message suggests, "increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem."  For more information on this error, please see the KB (DAQmx) Error -200279 During a Continuous, Buffered Acquisition.
    Error -200278 happens most often when you have configured a finite acquisition, but are calling the DAQmx Read function in a loop.  If you want to perform a finite acquisition, you should only call DAQmx Read once.  For more information on this error, see the KB Error -200278 at DAQmx Read.
    Finally, please refer to Abhinav's earlier post about the sample rate on the 9237 module.  As he described, the NI-DAQmx 8.3 driver will only allow you to set the sample clock to integer divisions of 50k (50,000/n, where n can be 1, 2, 3...13).  Since the maximum divisor is 13, the smallest sample rate that can be used is 3.846 kS/s.  You can check what value the driver is actually using for the sample clock by reading from the SampClk.Rate property of the DAQmx Timing property node.
    I hope this helps!  Let me know if you have any questions about what I've described.
    Best regards,

  • How to set the option Bit-mapped indexes to true ?

    Hi,
    I a not a an Oracle Administrator. Usually, I just use Oracle as developper. I have got a Oracle 10g database. I can not import data in my database because the Bit-mapped options is not set.
    When I type
    select banner from v$version
    I get this result :
    BANNER
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    I run the import and I get this error :
    IMP-00017: following statement failed with ORACLE error 439:
    "CREATE BITMAP INDEX "ID_ACC_DO" ON "ES_AUDIT_CONNEXION_ARCH" ("DATE_OUVERTU"
    "RE" ) PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 33554432 FREELIST"
    "S 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "IND_XL" LOGGING"
    IMP-00003: ORACLE error 439 encountered
    ORA-00439: feature not enabled: Bit-mapped indexes
    I typed the command :
    SELECT * FROM V$OPTION WHERE PARAMETER LIKE 'Bit-mapped%';
    I get the result :
    PARAMETER
    VALUE
    Bit-mapped indexes
    FALSE
    How to set this parameter to true ?
    Best regards,
    Xavier

    I beleiev that you are on Standard Edition.Bitmap indexes can be used only when you are working with Enterprise edition.
    SQL> select  * from V$option where parameter like '%Bit%';
    PARAMETER
    VALUE
    Bit-mapped indexes
    TRUE
    SQL> select * from V$version;
    BANNER
    Oracle Database 11g *Enterprise Edition* Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL>I guess you see the entry coming of Enterprise Edition in my banner.This is missing in your V$version, so you are using Standard Edition install.
    You need to move to Enterprise edition to use Bitmap Indexes.
    HTH
    Aman....
    Edited by: Aman.... on Dec 11, 2008 3:09 PM
    added a little more.

Maybe you are looking for

  • How do I share one library on two different computers?

    I have a desktop G5 that has the majority of my music on it. I also have a MacBook Pro. They both have home sharing turned on. However, if I'm on the road with my MacBook Pro, I don't see a way to access the "shared" music from my home-based G5. Seem

  • Exit button not working in MS Explorer

    Hi. The exit button in our Captivate courses are not working all of a sudden. They work in FireFox but in MS IE. We are using Capivate 2.0. IE version is 6.0.

  • ORA-02291 during MERGE on self-referenced table

    Hello, I encountered error ORA-02291 when I tried to use MERGE statement on the table with "self-referenced" foreign key. Using the foreign key deferrable did not help. The only one thing, which helped me, was using errorlog table. See the demonstrat

  • Is it possible to share a whole volume on my Mac to a PC?

    Here's the situation: I primarily use my Mac in my bedroom and sometimes use the PC in the lounge room. They're connected to each other via Ethernet and I've managed to network them at the most basic of levels. I can log into my Mac from the PC, but

  • XServe 2006 RAID Card Issues

    Basically, I was gifted (some gift!) a Late 2006 XServe 2.0GHz Dual QX, with 4 GB RAM, and basically was told 'It does not boot. We give up.' So heres what I have found so far.. It has an Apple Raid Card (don't ask me much more than that, or ill have