Writing to the System root in UNIX
My Application creates charts and puts it in a root directory of the System.How to use java api to read it back in and display the Image since the directory where the charts are being generated is outside the
Root Context of the Application. For e.g the generated charts are within
/tmp/charts/ if i write ../../../tmp/charts or /tmp/charts the image within the directory doesnt gets displayed on the web page.
Thanks in Advance
Thanks !! but i think u didnt get my problem.In the UNIX machine i have an jpg image File at the System Root directory called /tmp/charts.
In the same Machine there is weblogic Server which hosts my application.In my Application i need to display that Image stored at the Root. How to access the /tmp/charts directory from the Root-Context
of my Application..If i do like <img src="../../tmp/charts/sth.jpg" it doesnt displays the Image unlike in Windows.What should i write in the img src to display that Image.
Similar Messages
-
After installing version 5.1.1 of the Flexmotion driver, and installing f5 update, I got the following message after rebooting the system: The \System Root\System32\drivers\NatMotion.sys device could not locate the entry point IoSetDeviceInterfaceState in driver ntoskernal.exe. OS is Win NT. I see device in MAX , but can not initialise it, and cannot make firmware update.
I do not se device from NT system menager.The instructions on the f5 update are not 100% explicit about what to do for NT. The NatMotion.sys file should not be replaced on NT systems, only on the specifically listed OSes. Uninstall and reinstall the 5.1.1 driver along with the f5 update, however only install the components that do not specifically mention a particular OS.
Regards,
Brent R.
Applications Engineer
National Instruments -
Writing to the System clipboard
This company uses LabVIEW 2012 and LabWindows 2010 in an Aerospace environment. The use of older versions is done to have commonality with their facilities across the globe. Thus, I cannot get them to upgrade.
On their new test station, they have 14 serial ports to communicate with the unit under test. I have developed a LabVIEW serial port interface program that will allow them to communicate with those serial ports. I have the ini file configured to allow the user to run multiple instances of the executable, for as many ports as they desire, during their testing. One option that they requested is the ability to right click the mouse, have a menu display to select copy or copy all of the data to the clipboard so that they can paste the received data into a test report. I used the LabVIEW App Invoke Node function Write to Clipboard and Read From Clipboard to perform the task. However, I have the issue that this works on some instances and does not work on other instances of the executables. Since the code is the same, the user enters which port to connect to, I do not understand why I have this issue. It works fine on my PC which only has a single COM port.
I decided to write two LabWindows functions to read and write to the clipboard using ClipboardGetText and ClipboardPutText. I call those dll functions from LabVIEW. The first call to the function ClipboardPutText works in the sense that the data is placed into the clipboard. However, I immediately get a fatal error and the process stops. (I did not save a screen image and the test stations are in use at this time). After that, none of the other instances will copy the data and they all result in a fatal error and stop. This is repeatable as I restarted the software numerous times as I tried to determine the cause.
Since I do not have access to the code for the clipboard functions, I cannot determine if I need to configure something else related to the clipboard or the process attempting to read/write from/to the clipboard. I will continue to search but wanted to ask the experts in control of the clipboard software to determine if they have any recommendations on what may need to be added.
For LabWindows, the only other call that I performed was a free command after I executed the ClipboardGetText, if the pointer to the text was not NULL.
I will post this in both the LabVIEW and LabWindows discussion boards in case one or the other has a solution.
Thank you for your help.
I can provide a zip file, containing the source code, to NI personnel if you provide an email address. Since I am a contractor, I am not sure if the company’s policy allows global posting of their code, although I may be able to reduce the code to a minimum example, if necessary.I have done more testing in an attempt to clarify the error condition. I upgraded to LabVIEW 2014 on a Windows 7 SP1 system. I have enclosed some screen shots to show what I am doing.
My software allows multiple copies, 14 in this case, versions of the executable to run at one time. The software controls serial ports. The enclosed image of the front panel, LabVIEW window.png, indicates the COM port, baud rate, and version at the top of the window. This first small control allows the user to enter a command to send to the port. The large bottom indicator displays the data received on the port. I have menu items, pressing the right mouse button, that allows the user to clear all of the data, copy selected data, or copy all data. I have enclosed images of the copy, copy all, write to clipboard, and read serial port parts of the code. I was only copying small amounts of data, perhaps less than 256 bytes.
Here’s what I have noticed:
If I execute the code on my desktop computer, only 1 COM port, everything works fine. The copy and copy all will place the data into the system clipboard which allows the pasting of the data into Notepad.
If I execute the code on the test station, opening all 14 ports, we are using the NI serial card for all of the additional ports, the code works fine, as in item 1, for a couple of the executables but not the rest.
If I select a subset of the data being displayed, highlighted in blue by LabVIEW, then right click the mouse selecting the copy, the blue highlighting goes away but the data is copied to the clipboard allowing me to paste into Notepad.
If I right click the mouse selecting copy all, the data is NOT copied to the system clipboard so that I cannot paste it into Notepad.
In the Write to Clipboard function, I write to the clipboard and then read the clipboard. I added code to display, in a popup window, what was written to the clipboard and what was read from the clipboard. The data was the same although the data was not on the system clipboard so that I could paste it into Notepad.
I tried to select a subset of the data being displayed and then right clicking the mouse to do a copy all to see if that made a difference. It did not.
I tried to make the Write to Clipboard function re-entrant to test that theory. Not change in the behavior.
At one point, I tried to use LabWindows. I used the LabWindows clipboard calls and then tried calling the Microsoft clipboard functions directly. While those functions worked in LabWindows without a problem, I would get executable crashes when I tried to call my LabWindows functions from LabVIEW. If I commented out the actually code part, the call to the functions would return without crashing the executable. The issue was not in how the LabWindows functions were being called but something in the clipboard calls themselves. So, I decided that making a call using LabWindows offered nothing that I could use. I returned to using only LabVIEW and updated to 2014 to determine if that might solve the issue. No luck so far.I do not understand why, when I call the LabVIEW function to write to the clipboard, that it does not work for every executable of the multiple instances. Is there some other function that needs to be called prior to writing to the clipboard due to having multiple instances? Why does selecting a subset work when I do the copy but not when I copy all. If I am passing the data to write to the clipboard, why does selecting a subset and the copying only that subset work but the copy all does not? I do not understand how LabVIEW handles multiple instances and is they are truly considered separate processes.
I seldom use these forums as I can get most of the code that I write to work as expected. Thank you for all of your help and suggestions.
Attachments:
LabVIEW window.png 25 KB
Copy Menu Item.png 39 KB
Copy ALL Menu Item.png 33 KB -
JFileChooser -- how to display the system roots--
I am suprised I cannot find this answer by doing a quick search on Google but when my file choose inital opens I would like it to display the root of the file system.
For example on Windows when it opens I would like it to show C:\, F:\,.. whatever drives the user has. I know this has to be something simple any help would be appreciated.
Thanks,
Robhi!
You can get the roots using FileSystemView.getFileSystemView().getRoots().
Hope this helps.
chris -
How to delete system root certficates
After reviewing system certficates and evaluating them, even though they're trusted, they appear to be foreign and suspicious to me. not seeing any association with aspecific app., I would like to delete them from MacBookAir. How? Thanks
This is additional information to my original query. I hope this helps for those who may have experienced the same issue and found a solution other than to blindly follow the sheep/Apple. I love Apple products as I'm sure you do, but that doesn't mean we have to "settle" for certificates we know nothing about.
After opening Keychain Access and viewing the System Roots Certificates, I find one entitled, “China internet information Center EV Certificates Root”. It evaluates as “Generic (Certificate chain validation only).
There are four more that appear suspicious to me also. One is listed as “TÜBITAK UEKAE Kök Sertifica Hizmet Saglayicisi - Sürüm 3” in addition to two others with the same name, “TÜRKTRUST Elektronik Sertifika Hizmet Saglayicisi”. One expires Sep16, 2015 and the other Dec 22, 2017
Although I make an assumption that I must have clicked on something that enabled these, I cannot say with certainty whether I did nor not. They look suspicious to me and I’m reluctant to use the keychain and I’m very tempted to remove Apple Pay from my iPhone because of these.
Just because they are valid, one never knows what is truly “necessary” and why they are there. Seriously, if these kinds of certificates are valid, I would like to know what websites use them so I can avoid them in the future.
Does anyone have any comment or suggestions regarding these? Thanks. -
How do I restore System Roots Certificates. They were all accidentally deleted
Someone was working on my wife's mac, and they for some inexplicable reason deleted all of the certificates in the System Roots keychain. I can't import them from my mac, because I can't import to the System Roots keychain.
Those certificates are issued by Apple peroidically with Software Updates, but I read a way to update them more frequently.
Hit your Keychain Access Preferences,
Click Certificates
OSCP: Best Attempt
CRL: Best Attempt
Priority: OSCP
This might work, it will slightly reduce the speed of Secure Socket Layer (SSL) sites as it verifies each certificate in real time instead of from a file.
If these setting are already set, then you know what happened.
Try to visit a certain site that requires a certificate and see if everything works. -
USMT is failing with error 71 for all users in a specific office when backing up to a specific share:
COMPUTERNAME\Guest, administrator: No, interactive: Yes, logged on: No, has profile: No
DOMAIN\USERNAME, administrator: Yes, interactive: Yes, logged on: Yes, has profile: Yes
COMPUTERNAME\Administrator, administrator: Yes, interactive: Yes, logged on: No, has profile: Yes
2014-10-31 12:52:37, Status [0x000000] Activity: 'MIGACTIVITY_TRANSPORT_SELECTION'
2014-10-31 12:52:37, Info [0x000000] Processing the settings store
2014-10-31 12:52:37, Error [0x000000] SelectTransport: creating directory \\san.f.q.d.n\share$\username\BACKUP\USERNAME\USMT failed: Win32Exception: root of directory to create not found: The system cannot find the path specified. [0x00000003] class UnBCL::DirectoryInfo *__cdecl UnBCL::Directory::CreateDir(const class UnBCL::String *)[gle=0x00000005]
2014-10-31 12:52:37, Info [0x000000] Failed.[gle=0x00000091]
2014-10-31 12:52:37, Info [0x000000] A Windows Win32 API error occurred
Windows error 3 description: The system cannot find the path specified.[gle=0x00000091]
2014-10-31 12:52:37, Info [0x000000] Windows Error 3 description: The system cannot find the path specified.
2014-10-31 12:52:37, Info [0x000000] USMT Completed at 2014/10/31:12:52:37.861[gle=0x00000091]
2014-10-31 12:52:37, Info [0x000000] Entering MigShutdown method
2014-10-31 12:52:37, Info [0x080000] COutOfProcPluginFactory::FreeSurrogateHost: Shutdown in progress.
2014-10-31 12:52:37, Info [0x0803e5] Not unmapping HKLM\ELAM; it is not mapped
2014-10-31 12:52:37, Info [0x0803e6] Removing mapping for HKLM
2014-10-31 12:52:37, Info [0x0803e7] Successfully unmapped HKLM
2014-10-31 12:52:37, Info [0x0803e6] Removing mapping for HKU
2014-10-31 12:52:37, Info [0x0803e7] Successfully unmapped HKU
2014-10-31 12:52:37, Info [0x080487] Destroying OS analysis service
2014-10-31 12:52:37, Info [0x080488] Destroyed OS analysis service
2014-10-31 12:52:37, Info [0x000000] Leaving MigShutdown method
2014-10-31 12:52:37, Info [0x000000] ----------------------------------- USMT ERROR SUMMARY -----------------------------------
2014-10-31 12:52:37, Info [0x000000] * USMT error code 71:
2014-10-31 12:52:37, Info [0x000000] +-----------------------------------------------------------------------------------------
2014-10-31 12:52:37, Info [0x000000] | A Windows Win32 API error occurred
2014-10-31 12:52:37, Info [0x000000] | Windows error 3 description: The system cannot find the path specified.
2014-10-31 12:52:37, Info [0x000000] +-----------------------------------------------------------------------------------------
As the user in question, when I browse \\san.f.q.d.n\share$\username, the BACKUP directory exists, but there are no sub directories.
I manually created the sub directories, USERNAME\USMT - so the full path now exists: \\san.f.q.d.n\share$\username\BACKUP\USERNAME\USMT
I re-ran USMT but the process returned the same error.
If I specify other shares not on san.f.q.d.n but on san1.f.q.d.n or server.f.q.d.n or even workstation.f.q.d.n, it works fine.
Can someone provide guidance on how to troubleshoot this further?In Windows, setting the Environmental Variable sometimes DOES NOT WORK.
The -Djava.io.tmpdir=C:\temp setting must be made in the server properties of the oc4j in order for it to work.
Jae -
How Can One Run Only In The System Administrator ( ie root ) ?
Upon creating a System Administrator ( ie root ) in Command + R , of course after Clean Installing OS X ML with my own specific Apple Verified Account ,
i have the Log In screen from a startup , either Safe Boot or a Boot , and i have my own specifc Apple Verified Account , plus the Other... ,
which the Other... of course is the System Administrator ( ie root ) .
How Can One Run Only In The System Administrator ( ie root ) ?
Is there a way in Terminal with sudo su to make it work ?
Shall i just always log in with Other... System Administrator ( ie root ) , and just forget the my own specific Apple Verified Account ?As of EHP3, you could still install some EHP components. On an ERP 6.00, you could just push SAP_APP to 6.03 and move on. Now if you want another component in your system with an EHP4 version, you can't have some components at EHP3 and some at EHP4. You would install EHP4 for the new component you desire updated and part of the work will be to also update SAP_APP to 6.04.
EHP4 is an UPGRADE process, with shadow instance & all the joy of an upgrade process. You can either run ressource minimized or downtime minimized. In resource minimized, the shadow instance runs on the same server as the main instance. Downtime minimized allow to run the shadow instance on a separate / new server. Anyway you go, you will always have a "Downtime Phase" when you bring back the updated components from the shadow instance toward the real production one.
As with any UPGRADE project, the benefits of installing EHP4 for your business has to weighted against the downtime cost.
Our tests so far on small systems (few data, few users, 120GB database) show ~3 days process from EHP3 to EHP4 (all components) with a downtime phase of about 22 hours using the "resource minimized" path, i.e. shadow & main instance on the same server (4 CPUs, 16GB RAM). Until you give a try at your Sandbox or DEV systems, you won't have realistic figures for your environment.
Good luck! -
E72 - The driver \Driver\WUDFRd failed to load for the device ROOT\SYSTEM\0001
I have a problem with my ThinkCentre E72 (Windows 8).
Suddenly, it shuts down with "shut-down" screen. Later, in my Event Viewer, I found the following System Warning:
"The driver \Driver\WUDFRd failed to load for the device ROOT\SYSTEM\0001" where the source of problem is Kernel-PnP.
Only thing that is plugged in my computer is mouse, keyboard and monitor.
Many thanks,
MatijaHi,
PNP0A0A is not a default pnp ID, you need go to the manufacturer websites to find the ACPI driver, download and install it.
Alex Zhao
TechNet Community Support -
Moved the system to another hd and partition - cannot create root dev
hi,
i moved my arch system from one hd to another one, also to another partition. now the system does not come up, complaining it could not find the root partition. it still expects the old one, even though grub does have the right kernel option.
is this inside the initrd? how can i change it there?
is chrooting an option to rebuild the initrd?
thanks for your advice,
das.tFirst, make sure your GRUB entry is pointing to the correct partition, if you use UUID entry then you must update it exactly to reflect the new partition ID. Use "ls -lhF /dev/disk/by-uuid" to find it.
Second, you must edit the fstab, look above.
Third, try to boot with kernel-fallback.img
Fourth, when sucessfully booting, rebuild the initrd image with "mkinitcpio -p kernel26", after that you can boot with standard initrd. -
how do i change the system language of my mac. I had to change it into Chinese. Since the Chinese guy is gone, I've no idea how to change it back into english. I don't understand any of the Chinese writing..
You may find info from this article helpful.
http://support.apple.com/kb/PH14211
Best. -
Everything runs als Root, can someone give me a hand for the system rights?
yeah I screwed up big times because of this neat unknow_user "Feature" in Leopard.
First i installed a os 10.4 app under leopard which let the disk utility slow down and the finder crashes if i change the user rights, and then i changed globally the group and user of everything in the application folder and my documents folder with pathfinder for looking if i can solve the problem that way.
-But now everything runs as Root and even the hd itself has a owner root and as group admin.
i don't get the difference between system, root, admin, wheel, username for the owner and group. I googled but found nothing clear about this.
And i also wonder what i should do about the group and the meaning of root, system, admin, wheel, username as a group for a single user system. Where should i give a read, read&write and execute permission for example?
at the moment everything seems to run mostly root and every program runs on root and i think this is the worst think that can happen and causes some trouble for the programs.
Can someone give me a short hand and for example tell me if i should set the hd owner to my username and the group to system or admin or whatever and this also for the application and documents/film and other stuff on my user folder?
that would be great
I think i have to reinstall leopard, but as long as this unknow_user problem still resist and no patch is available, i see the same thing happen again and again for me, so a little help would be great
here the ls -l -a from the system and user directory
drwxrwxr-t 26 root admin 1496 Nov 1 23:41 .
drwxrwxr-t 26 root admin 1496 Nov 1 23:41 ..
-rw-rw-r--@ 1 root admin 15364 Nov 5 22:42 .DS_Store
drwxrwxr-x@ 3 root admin 102 Oct 30 18:40 .Spotlight-V100
drwxrwxr-x@ 2 root admin 68 Aug 2 12:29 .Trashes
-rw-r--r-- 1 root admin 0 Oct 30 17:09 .com.apple.timemachine.supported
drwx------ 2 root admin 952 Nov 5 22:09 .fseventsd
-rw-rw-r--@ 1 root admin 262144 Oct 10 11:42 .hotfiles.btree
drwxr-xr-x@ 2 root wheel 68 Aug 2 12:30 .vol
drwxrwxrwx+ 400 adrian admin 13872 Nov 5 22:00 Applications
drwxr-xr-x 2 root admin 102 Nov 1 23:01 Data
-rw-r--r--@ 1 root admin 10240 Oct 25 05:19 Desktop DB
-rw-r--r--@ 1 root admin 37442 Oct 25 01:39 Desktop DF
drwxrwxr-x@ 13 root admin 544 Oct 30 19:46 Developer
drwxr-xr-x 5 adrian adrian 204 Sep 12 14:25 InputManagers
-rw-r--r--@ 1 adrian adrian 1568128 Nov 1 23:45 Installer Log File
drwxrwxr-t+ 60 root admin 2108 Nov 1 22:06 Library
drwxr-xr-x@ 2 root wheel 68 Aug 2 10:08 Network
drwxr-xr-x 3 root wheel 136 Oct 30 18:01 System
drwxrwxrwx@ 3 root admin 102 Aug 2 17:21 TheVolumeSettingsFolder
drwxr-xr-x 5 root admin 238 Nov 2 00:03 Users
drwxrwxrwt@ 4 root admin 170 Nov 5 20:21 Volumes
-rw-r--r-- 1 adrian admin 0 Oct 29 22:51 az.log
drwxr-xr-x@ 2 root wheel 1360 Oct 30 17:57 bin
drwxrwxr-t@ 2 root admin 68 Jan 13 2006 cores
dr-xr-xr-x 2 root wheel 512 Nov 2 04:11 dev
lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 etc -> private/etc
dr-xr-xr-x 2 root wheel 1 Nov 2 04:11 home
lrwxr-xr-x 1 root 502 11 Nov 1 22:40 mach -> mach_kernel
-r--r--r--@ 1 root admin 615748 Oct 29 18:23 mach.sym
-rw-r--r--@ 1 root wheel 10243756 Oct 10 06:38 mach_kernel
-rw-r--r--@ 1 root wheel 10696809 Oct 10 06:38 mach_kernel.ctfsys
dr-xr-xr-x 3 root wheel 2 Nov 2 04:11 net
drwxr-xr-x@ 3 root admin 102 Sep 14 17:40 opt
drwxr-xr-x@ 6 root wheel 204 Oct 29 18:23 private
drwxr-xr-x@ 2 root wheel 2244 Oct 30 18:01 sbin
drwxr-xr-x 11 root admin 374 Jun 9 2006 sw
lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 tmp -> private/tmp
drwxr-xr-x@ 13 root wheel 510 Oct 30 19:52 usr
lrwxr-xr-x@ 1 root admin 11 Oct 30 17:57 var -> private/var
and for the my user folder:
drwxr-xr-x+ 22 adrian adrian 1156 Nov 3 02:30 .
drwxr-xr-x 5 root admin 238 Nov 2 00:03 ..
-rw-r--r-- 1 adrian adrian 3 Sep 13 22:41 .CFUserTextEncoding
-rw-r--r--@ 1 adrian adrian 15364 Nov 5 21:50 .DS_Store
-rw-r--r-- 1 adrian adrian 11 Oct 16 17:17 .PortAuthority2.4.rc
drwx------ 2 adrian adrian 68 Nov 5 20:58 .Trash
-rw-r--r-- 1 adrian adrian 0 Aug 16 04:37 .Xauthority
-rw-r--r-- 1 adrian adrian 2552 Nov 5 22:43 .bash_history
drwxr-xr-x 4 adrian adrian 136 Aug 17 21:11 .config
drwxr-xr-x 8 adrian adrian 306 Aug 6 02:22 .dvdcss
drwxr-xr-x 2 adrian adrian 578 Oct 21 19:32 .fontconfig
-rw-r--r-- 1 adrian adrian 489724 Aug 30 17:49 .fonts.cache-1
drwxr-xr-x 2 adrian adrian 68 Sep 14 17:40 .macports
-rw-r--r-- 1 adrian adrian 1643 Aug 30 19:01 .mime.types
-rw-r--r-- 1 adrian adrian 47 Oct 12 22:45 .parallels_settings
-rw-r--r-- 1 adrian adrian 194 Sep 28 02:52 .profile
drwxr-xr-x 3 adrian adrian 102 Sep 23 00:48 .stella
drwxr-xr-x 2 adrian adrian 68 Aug 16 20:09 .wapi
-rw-r--r-- 1 adrian adrian 467 Nov 5 04:21 .webaom
-rw-r--r-- 1 adrian adrian 570 Aug 16 04:37 .xinitrc
drwxr-xr-x 3 adrian adrian 170 Aug 5 08:10 Applications
drwxr-xr-x+ 23 adrian adrian 1190 Nov 5 20:21 Desktop
drwxrwxrwx+ 35 adrian adrian 2210 Nov 5 22:08 Documents
drwxr-xr-x+ 14 adrian adrian 3332 Nov 5 20:02 Downloads
drwxr-xr-x+ 48 adrian adrian 1836 Oct 30 19:11 Library
drwxr-xr-x+ 9 adrian adrian 748 Nov 2 23:49 Movies
drwxr-xr-x+ 8 adrian adrian 510 Sep 29 05:44 Music
drwxr-xr-x 2 root adrian 68 Nov 3 02:30 New Folder
drwxr-xr-x+ 6 adrian adrian 748 Oct 18 23:26 Pictures
drwxrwxrwx+ 3 adrian adrian 238 Nov 4 20:34 Public
drwxr-xr-x+ 3 adrian adrian 204 Aug 14 21:29 Sites
drwxr-xr-x 3 adrian adrian 340 Oct 31 05:55 CompilationUnix
-rw-r--r-- 1 adrian adrian 129 Oct 6 16:48 license.jailllaass wrote:
lizdance40, did you read the original post? The poster's problem is that when he connects the iPod to his computer the iPod does not appear in iTunes. He does not say he has a wifi problem with his iPod.
lizdance40 wrote:
You need to do an update on your router's firmware, or get a higher speed router..
Or replace the router and or modem. High demand can burn out a router in 2 years. Typical life is about 4-5 at most.
The new iPod is more advanced and if your router is slow or inconsistant signal your iPod will stop trying to connect to save your battery.
of course he dose have a wifi problwm. read the last line of the original post -
My iPhone will not respond even once it is hooked to iTunes nor will it respond when I hit the power (reset) button. The screen mentions that the system is checking for "borrowed blocks" (small writing in the top right corner).
Are you using the charger and cable that came with the phone?
Are you using an unauthorized third party charger? -
Is there any way to prevent non-root users from rebooting the system?
This question seems to be addressed many times on the web, but the problem is that none of the wannabe-howtos work on my system. In particular, this doesn't work and this doesn't work either, because (1) I need to keep policykit installed for udisks and other dependencies to function and (2) renaming (or removing) the file /usr/share/polkit-1/actions/org.freedesktop.login1.policy has (again) no effect on the users' ability to reboot and shut down the system. Even more surprisingly, adding the following to /etc/polkit-1/rules.d/20-disable-shutdown.rules has no effect at all:
polkit.addRule(function(action, subject) {
if (
action.id == "org.freedesktop.login1.power-off" ||
action.id == "org.freedesktop.login1.reboot" ||
action.id == "org.freedesktop.login1.suspend" ||
action.id == "org.freedesktop.upower.suspend" ||
action.id == "org.freedesktop.login1.hibernate" ||
action.id == "org.freedesktop.upower.hibernate"
return polkit.Result.NO;
As a result, ordinary users (not in the wheel group and with no special permissions) can simply reboot the machine by typing reboot. I remember that a simple polkit rule (as proposed on the Fedora forum) worked fine just a few months ago, but this doesn't work nowadays. The action IDs mentioned there are no longer listed in pkaction, so it's quite obvious that some changes (and bugs) have been introduced since then. I just need to prevent the users from rebooting the machine and to keep policykit installed. Is there any way to do this?karol wrote:Do said users have the ability to push the Power or Reset buttons?
No, they don't.
But come on, access permissions are a matter of principle rather than a matter of what you can possibly do with a hammer in your hand. That makes your question somewhat irrelevant to this issue. Imagine someone asking: "How can I protect my home directory from access by other users?" You would then probably ask: "Do said users have the ability to pull out the hard drive and mount it on their computer?"
Even if the users had physical access to the ACPI buttons, rebooting the computer by mistake (via software) would still be much more likely than pressing (or even holding) the ACPI buttons by mistake.
If I call rm -Rf / as a normal user, nothing should happen to the system in terms of availability to other users. Only my home directory and temporary files would vanish, but that's all. This is what permissions are there for. Similarly, when I type reboot as a normal user (no matter if I'm on SSH, on a local terminal or logged into KDE), it should be possible to simply disallow rebooting.
The idea that users logged in locally can restart the computer may be fine for laptops under certain conditions, but it is a bad idea in almost all other cases. In a "kiosk" type environment, for example, the ability to reboot and get to the bootloader can be a huge security hole, unless all your disks are encrypted, and a huge "reliability hole" in any case. Suppose you use a desktop as a home server. You want everyone to be able to log in and to connect a USB flash drive (using polkit and udisks). But you simply don't want the machine to be rebooted. Why is such a simple thing so hard to do?
Last edited by andrej.podzimek (2014-03-10 02:15:35) -
Error in "Checking Availabe Space for the DB2 UDB for Unix..." phase
Hello,
We are in the middle of an Upgrade proyect from R/3 4.6C (kernet 4.6D EXT) to ECC 6.0.
As a first step we are doing an Heterogenous System Copy to migrate from servers with HP-UX B11.11/Informix 9.4 to servers with AIX 5.3/DB2 UDB 8.
We already did the database import with no errors. When we are installing R3 4.6C in the target server we are getting u201CMemory Fault (coredump)u201D error in the u201CChecking Availabe Space for the DB2 UDB for Unix, Windows Tablespacesu201D phase.
Any advice will be appreciated.
Best Regards
FranciscoHello Paul,
There is no db2diag.log. We are in the first steps of the installation.
Operating System logs just shows an ABNORMALY TERMINATION OF SOTWARE error.
This is the CEDBMIG.log
INFO 2010-08-04 10:12:00 CommandFileController SyFileCopy:150
Copying source file CEDBMIG.R3S to target file CEDBMIG.R3S.30 ...
INFO 2010-08-04 10:12:01 Main
Preparation successfully completed.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:434
checking host name lookup for 'sapqas'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:473
offical host name for 'sapqas' is 'sapqas'.
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:541
host 'sapqas' has ip address '172.26.26.64'
INFO 2010-08-04 10:12:02 CENTRDBINSTANCE_IND_DB6 SyCheckHostnameLookup:581
offical host name for '172.26.26.64' is 'sapqas'.
INFO 2010-08-04 10:12:23 CDSERVERMIG_IND_DB6 InternalColdKeyCheck:0
The CD KERNEL will not be copied.
INFO 2010-08-04 10:12:23 CDSERVERMIG_IND_DB6 InternalColdKeyCheck:0
The CD RDBMS will not be copied.
INFO 2010-08-04 10:12:23 CDSERVERMIG_IND_DB6 InternalColdKeyCheck:0
The CD EXPORT1 will not be copied.
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyCoprocessCreate:300
Creating coprocess /usr/sbin/lsattr -El sys0 -a realmem ...
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyRamSizeGet:100
The process lsattr puts out:
realmem 8388608 Amount of usable physical memory in Kbytes False
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyRamSizeGet:700
Physical RAM size is 8192 MB.
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:100
Retrieving swap space size ...
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SyCoprocessCreate:300
Creating coprocess /usr/sbin/lsps -s ...
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:150
The process lsps puts out:
Total Paging Space Percent Used
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:150
The process lsps puts out:
8192MB 1%
INFO 2010-08-04 10:12:23 CALCRAM_IND_DB6 SySwapGetSize:500
Currently activated swap space is 8192 MB.
INFO 2010-08-04 10:12:31 CENTRDBINSTANCE_IND_DB6 InternalWarmKeyCheck:0
The installation phase is starting now. Please look in the log
file for further information about current actions.
INFO 2010-08-04 10:12:31
Requesting Installation Details
INFO 2010-08-04 10:12:31
Reading and Checking DB2 UDB for UNIX, Windows Specific Keys
INFO 2010-08-04 10:12:31
Select the DB2 Storage Management.
INFO 2010-08-04 10:12:31
Choose the number of storage paths for DB2's Automatic Storage
Management.
INFO 2010-08-04 10:12:31 CDSERVERMIG_IND_DB6 InternalWarmKeyCheck:0
The CD KERNEL will not be copied.
INFO 2010-08-04 10:12:31 CDSERVERMIG_IND_DB6 InternalWarmKeyCheck:0
The CD RDBMS will not be copied.
INFO 2010-08-04 10:12:31 CDSERVERMIG_IND_DB6 InternalWarmKeyCheck:0
The CD EXPORT1 will not be copied.
INFO 2010-08-04 10:12:31
Requesting Information on CD-ROMs
INFO 2010-08-04 10:12:31
Calculating RAM Distribution
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Dispatcher
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Gateway Service
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Secure Gateway Service
INFO 2010-08-04 10:12:31
Creating the Service Entry for the Message Server
INFO 2010-08-04 10:12:31
Creating the SAP Administration Group sapsys
INFO 2010-08-04 10:12:32
Creating the Database Administration Group db<dbsid>adm
INFO 2010-08-04 10:12:32
Creating the Group db<dbsid>ctl
INFO 2010-08-04 10:12:32
Creating the Group db<dbsid>mnt
INFO 2010-08-04 10:12:32
Creating the SAP connect user
INFO 2010-08-04 10:12:32
Setting Password of the SAP connect user
INFO 2010-08-04 10:12:32
Creating the db2<sapsid> User
INFO 2010-08-04 10:12:32
Setting the User Password
INFO 2010-08-04 10:12:32
Creating the SAP System Administrator
INFO 2010-08-04 10:12:32
Setting Password for for the SAP System Administrator
INFO 2010-08-04 10:12:32
Creating Directories
INFO 2010-08-04 10:12:32
Creating Symbolic Links
INFO 2010-08-04 10:12:32
Getting Minimal Size of the Database
INFO 2010-08-04 10:12:32
Changing DB2 UDB for UNIX, Windows Tablespace Data
INFO 2010-08-04 10:12:32
Checking if Required Directories Exist
INFO 2010-08-04 10:12:32
Checking Available Space for the SAP Instance
INFO 2010-08-04 10:12:32
Checking Available Space for the DB2 UDB for UNIX, Windows
Tablespaces
This is the CEDBMIG.R3S log
120_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.CSH
130_SOURCE=@DB_HOME@/.cshrc
130_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.CSH
200_SOURCE=@DB_HOME@/.profile
200_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.SH
210_SOURCE=@DB_HOME@/.profile
210_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.SH
[Z_OSUSERSIDADMENVIRONMENT_IND_DB6]
100_GROUP=sapsys
100_OWNER=@LOWER_SAPSYSTEMNAME@adm
100_PERMISSION=0644
100_SOURCE=@HOME@/.login
100_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.CSH
110_SOURCE=@HOME@/.login
110_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.CSH
120_GROUP=sapsys
120_OWNER=@LOWER_SAPSYSTEMNAME@adm
120_PERMISSION=0644
120_SOURCE=@HOME@/.cshrc
120_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.CSH
130_SOURCE=@HOME@/.cshrc
130_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.CSH
200_SOURCE=@HOME@/.profile
200_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/SAPSRC.SH
210_SOURCE=@HOME@/.profile
210_TEMPLATE=@CDMOUNTPATH@/@OS@/COMMON/INSTALL/DBSRC.SH
[Z_R3DIRECTORIES_IND_IND]
101_PATH=@SAPDIR@
101_PERMISSION=0775
101_SET_FILE_ATTRIBUTES=YES
101_USERGROUP=sapsys
101_USERNAME=@LOWER_SAPSYSTEMNAME@adm
102_PATH=@SAPDIR@/tmp
103_PATH=@SAPDIR@/trans
104_PATH=@SAPDIR@/trans/tmp
104_SET_FILE_ATTRIBUTES=NO
105_PATH=@SAPDIR@/trans/EPS
106_PATH=@SAPDIR@/trans/EPS/in
107_PATH=@SAPDIR@/trans/EPS/out
108_PATH=@SAPDIR@/trans/EPS/log
109_PATH=@SAPDIR@/trans/bin
110_PATH=@SAPDIR@/trans/buffer
111_PATH=@SAPDIR@/trans/cofiles
112_PATH=@SAPDIR@/trans/data
113_PATH=@SAPDIR@/trans/etc
114_PATH=@SAPDIR@/trans/log
115_PATH=@SAPDIR@/trans/sapnames
120_PATH=@SAPDIR@/@SAPSYSTEMNAME@
120_PERMISSION=0751
120_SET_FILE_ATTRIBUTES=YES
121_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS
121_PERMISSION=0755
122_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe
123_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe/opt
124_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/gen
125_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/gen/opt
126_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/gen/dbg
127_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS/src
128_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@
129_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/data
130_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/log
131_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/work
131_PERMISSION=0775
132_PATH=@SAPMOUNT@
140_PATH=@SAPMOUNTEXE@
141_PATH=@SAPMOUNTPROFILE@
141_PERMISSION=0755
142_PATH=@SAPMOUNTGLOBAL@
142_PERMISSION=0700
150_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/sec
160_PATH=@STARTDIRECTORY@
160_PERMISSION=0777
[Z_R3DIRPERMISSIONS_IND_IND]
101_CHANGE_ON_NFS=NO
101_PATH=@SAPMOUNT@
101_PERMISSION=0755
101_TRAVERSE=
101_USERGROUP=sapsys
101_USERNAME=@LOWER_SAPSYSTEMNAME@adm
102_CHANGE_ON_NFS=NO
102_PATH=@SAPMOUNTEXE@
102_PERMISSION=0755
102_TRAVERSE=
102_USERGROUP=sapsys
102_USERNAME=@LOWER_SAPSYSTEMNAME@adm
103_CHANGE_ON_NFS=NO
103_PATH=@SAPMOUNTGLOBAL@
103_PERMISSION=0710
103_TRAVERSE=
103_USERGROUP=db@LOWER_DB_SID@adm
103_USERNAME=@LOWER_SAPSYSTEMNAME@adm
104_CHANGE_ON_NFS=NO
104_PATH=@SAPMOUNTPROFILE@
104_PERMISSION=0755
104_TRAVERSE=
104_USERGROUP=sapsys
104_USERNAME=@LOWER_SAPSYSTEMNAME@adm
105_CHANGE_ON_NFS=NO
105_PATH=@SAPDIR@/@SAPSYSTEMNAME@
105_PERMISSION=0755
105_TRAVERSE=
105_USERGROUP=sapsys
105_USERNAME=@LOWER_SAPSYSTEMNAME@adm
120_CHANGE_ON_NFS=NO
120_PATH=@HOME@
120_PERMISSION=0700
120_TRAVERSE=
120_USERGROUP=sapsys
120_USERNAME=@LOWER_SAPSYSTEMNAME@adm
121_CHANGE_ON_NFS=NO
121_PATH=@HOME@
121_PERMISSION=0777
121_TRAVERSE=FILES
121_USERGROUP=sapsys
121_USERNAME=@LOWER_SAPSYSTEMNAME@adm
130_CHANGE_ON_NFS=NO
130_PATH=@STARTDIRECTORY@
130_PERMISSION=0777
130_TRAVERSE=
130_USERGROUP=sapsys
130_USERNAME=@LOWER_SAPSYSTEMNAME@adm
140_CHANGE_ON_NFS=YES
140_PATH=@SAPDIR@/trans
140_PERMISSION=0775
140_TRAVERSE=
140_USERGROUP=sapsys
140_USERNAME=@LOWER_SAPSYSTEMNAME@adm
141_CHANGE_ON_NFS=YES
141_PATH=@SAPDIR@/trans/bin
141_PERMISSION=0775
141_TRAVERSE=
141_USERGROUP=sapsys
141_USERNAME=@LOWER_SAPSYSTEMNAME@adm
[Z_R3FILEPERMISSIONS_IND_IND]
101_CHANGE_ON_NFS=NO
101_PATH=@SAPMOUNTEXE@
101_PERMISSION=0755
101_TRAVERSE=SUBDIRECTORIES
101_USERGROUP=sapsys
101_USERNAME=@LOWER_SAPSYSTEMNAME@adm
102_CHANGE_ON_NFS=NO
102_PATH=@SAPMOUNTEXE@
102_PERMISSION=0755
102_TRAVERSE=FILES
102_USERGROUP=sapsys
102_USERNAME=@LOWER_SAPSYSTEMNAME@adm
103_CHANGE_ON_NFS=NO
103_PATH=@SAPMOUNTGLOBAL@
103_PERMISSION=0700
103_USERGROUP=sapsys
103_USERNAME=@LOWER_SAPSYSTEMNAME@adm
104_CHANGE_ON_NFS=NO
104_PATH=@SAPMOUNTPROFILE@
104_PERMISSION=0755
104_TRAVERSE=SUBDIRECTORIES
104_USERGROUP=sapsys
104_USERNAME=@LOWER_SAPSYSTEMNAME@adm
105_CHANGE_ON_NFS=NO
105_PATH=@SAPMOUNTPROFILE@
105_PERMISSION=0755
105_TRAVERSE=FILES
105_USERGROUP=sapsys
105_USERNAME=@LOWER_SAPSYSTEMNAME@adm
106_CHANGE_ON_NFS=NO
106_PATH=@SAPMOUNTEXE@/saposcol
106_PERMISSION=04755
106_USERGROUP=sapsys
106_USERNAME=root
112_CHANGE_ON_NFS=NO
112_PATH=@SAPDIR@/@SAPSYSTEMNAME@
112_PERMISSION=0751
112_TRAVERSE=SUBDIRECTORIES
112_USERGROUP=sapsys
112_USERNAME=@LOWER_SAPSYSTEMNAME@adm
113_CHANGE_ON_NFS=NO
113_PATH=@SAPDIR@/@SAPSYSTEMNAME@
113_PERMISSION=0751
113_TRAVERSE=FILES
113_USERGROUP=sapsys
113_USERNAME=@LOWER_SAPSYSTEMNAME@adm
114_CHANGE_ON_NFS=NO
114_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS
114_PERMISSION=0755
114_TRAVERSE=SUBDIRECTORIES
114_USERGROUP=sapsys
114_USERNAME=@LOWER_SAPSYSTEMNAME@adm
115_CHANGE_ON_NFS=NO
115_PATH=@SAPDIR@/@SAPSYSTEMNAME@/SYS
115_PERMISSION=0755
115_TRAVERSE=FILES
115_USERGROUP=sapsys
115_USERNAME=@LOWER_SAPSYSTEMNAME@adm
116_CHANGE_ON_NFS=NO
116_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@
116_PERMISSION=0755
116_TRAVERSE=SUBDIRECTORIES
116_USERGROUP=sapsys
116_USERNAME=@LOWER_SAPSYSTEMNAME@adm
117_CHANGE_ON_NFS=NO
117_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@
117_PERMISSION=0755
117_TRAVERSE=FILES
117_USERGROUP=sapsys
117_USERNAME=@LOWER_SAPSYSTEMNAME@adm
118_CHANGE_ON_NFS=NO
118_PATH=@SAPDIR@/@SAPSYSTEMNAME@/@INSTANCENAME@/work
118_PERMISSION=0775
118_USERGROUP=sapsys
118_USERNAME=@LOWER_SAPSYSTEMNAME@adm
120_CHANGE_ON_NFS=NO
120_PATH=@HOME@
120_PERMISSION=0700
120_USERGROUP=sapsys
120_USERNAME=@LOWER_SAPSYSTEMNAME@adm
121_CHANGE_ON_NFS=NO
121_PATH=@HOME@
121_PERMISSION=0700
121_TRAVERSE=FILES
121_USERGROUP=sapsys
121_USERNAME=@LOWER_SAPSYSTEMNAME@adm
[Z_R3LINKS_IND_IND]
101_LINKCONTENT=@SAPMOUNTEXE@
101_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe/dbg
102_LINKCONTENT=dbg
102_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/exe/run
103_LINKCONTENT=@SAPMOUNTGLOBAL@
103_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/global
104_LINKCONTENT=@SAPMOUNTPROFILE@
104_LINKNAME=@SAPDIR@/@SAPSYSTEMNAME@/SYS/profile
[Z_SAPDATAPATH]
S1=/db2/@SAPSYSTEMNAME@/sapdata1
S2=/db2/@SAPSYSTEMNAME@/sapdata2
S3=/db2/@SAPSYSTEMNAME@/sapdata3
S4=/db2/@SAPSYSTEMNAME@/sapdata4
S5=/db2/@SAPSYSTEMNAME@/sapdata5
S6=/db2/@SAPSYSTEMNAME@/sapdata6
SAPDATAT=/db2/@SAPSYSTEMNAME@/sapdatat
As you can see there is not an error message, the installation simply stops when the try to check the space available for tablespaces.
Regards
Maybe you are looking for
-
CAPI/QMS not working correctly?
I am using an application with all the application objects in schema HTL and all the QMS objects in schema QMS. The application is being developed with Designer 6i and Headstart. When trying to insert records into a table with a CAPI attached, the tr
-
USB to DVI...
I have an Infocus Home Theater projector with a DVI port that I'd like to try out--my home DVD player only goes "up" to component cables and I'd like to experience that digital image. Is there a way to use my USB port from my Mac to convert the signa
-
Sorting column issue in Oracle ADF faces
hey guys anybody know how I can sort on an object but display a property for example, a person object implements comparable and its sort is determined by SSN however, when displaying the person, I want to display Last name instead. <af:column sortabl
-
How to clone my HDD on my Pavilion dv7
I would like to clone my Pavilion dv7 HDD. It has a WD 1T HDD. I purchased another WD 1T HDD from bestbuy and a StarTech HDD Duplicator. It fails during inital Cloning. Called StarTech and they said I need to find out from HP if there was a HPA (
-
Can i replace my old dv6000 with a 443775-001 one?
My HP Pavilion dv6815nr broke down (the motherboard is dead). Iit has a dv6000 AMD motherboard on it. Can i buy a part like this with the 443775-001 number on it if on the broken motherboard says "replace with HP spare 459565-001" Will there be a pro