Read-only Access to Kibana/ESAAS

Allowing “GET” Operations only via a group is breaking kibana access. When user accesses kibana with credentials; the “discover” page is not displayed. The page “Localhost:5601/app/kibana#/discover?_g” fails repeatedly asking for credentials and the logs say they are failing due to “Post” operations being denied. So my question is why cant kibana use GET for searching logs? How to provide read onyl access to kibana/elastic? Is enabling POST operations ok? Can something be written with post which would alter data?

SharePoint 2013 – How do I save the value of a read-only or hidden field?

I’m trying to set a field in a list’s edit form with a value after the user clicks “Save.” Here’s the catch: I don’t want the field to be editable by the user (only JavaScript should set its value).

So first, I tried setting the field’s “readonly” attribute. Didn’t work – after saving the form, I find out that the value didn’t take. So I think, “maybe SharePoint ignores saving read-only fields.” Instead, I add styling to set its “display” to “none.” I find out that this gives the same result as above.

I also tried adding a span, setting its positioning to “absolute”, and giving it a solid background color, and increasing the z index so that it would cover up the field. No luck – still didn’t save the value when I clicked “Save.”

I even tried overriding the “PreSaveAction” function to make the field visible afterwards, but that didn’t work either.

Unfortunately, it seems the only way for this to work is to allow the field to be completely visible and completely editable by the user, for the entire lifespan of the page, because when I tried that, it worked fine.

Is there something I’m missing?

Catalog Search indexer process unknown error: cluster_block_exception FORBIDDEN/12/index read-only

Design Config Grid index has been rebuilt successfully in 00:00:00 Customer Grid index has been rebuilt successfully in 00:00:01 Category Products index has been rebuilt successfully in 00:00:00 Product Categories index has been rebuilt successfully in 00:00:00 Catalog Rule Product index has been rebuilt successfully in 00:00:00 Product EAV index has been rebuilt successfully in 00:00:00 Stock index has been rebuilt successfully in 00:00:00 Product Price index has been rebuilt successfully in 00:00:00 Catalog Product Rule index has been rebuilt successfully in 00:00:00 Amasty: Advanced Search  - Categories index has been rebuilt successfully in 00:00:00 Catalog Search indexer process unknown error: {"error":{"root_cause":[{"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow                                                                                                                         delete (api)];"}],"type":"cluster_block_exception","reason":"blocked by: [FORBIDDEN/12/index read-only / allow delet                                                                                                                        e (api)];"},"status":403} Amasty: ElasticSearch - Relevance Rules (Rules) index has been rebuilt successfully in 00:00:00 Amasty: ElasticSearch - Relevance Rules (Products) index has been rebuilt successfully in 00:00:00 Amasty: ElasticSearch - Popup Data index has been rebuilt successfully in 00:00:00 

how can i solve this issue? this happens sometimes when i try to reindex, i don’t think my index are being reindex correctly even though it returned with success message.

Read-only Access to Forbidden directorys with no “sensitive” information

I was doing some discover content on a website of a bug bounty program and realized that i got some 200 codes on directory that are Forbidden when trying to access to them throw the browser. i am able to read these forbidden contents but they don’t have any sensitive/critical information.

Most of them are JSON files and others are just have HTML. my doubt here is, why do they have them forbidden is there is no critical information, am i missing something from here that i shouldn’t?

I’ll show a 200 response that i got that is forbidden throw the browser..

  1. example:

{"id":5,"currency":"GVP","iso_code":"GB","en_name":"United Kingdom","native_name":"United Kingdom","is_active":true,"regions":[]}

  1. example:

    {"otpToken":"846dc63bcb77b8765aea3bc181f2d5a95bad3c05438043f15b65f3acad13"}

Re-sharing a Windows 2012r2 share as read-only

Looking for a Windows based solution.

Background:

  1. A standalone WS 2012R2 located on NETWORK A is sharing a folder with R/W access through a local user.
  2. A segregated NETWORK B contains user PCs, some joined to NETWORK B’s WS 2019 AD, others configured as standalone.
  3. NETWORKS A and B are connected via a firewall/router appliance.

Requirements:

  1. Make the share on the 2012R2 server in NETWORK A available as READ-ONLY to user PCs on NETWORK B.
  2. Both domain-joined and standalone user PCs on NETWORK B need to have access to the share.
  3. Guarantee that users’ access is READ-ONLY.
  4. Users need to be able to launch applications directly from the READ-ONLY share/mapped drive.

Constraints:

  1. No changes can be made to the Windows 2012R2 server.
  2. Users should not be able to bypass the RO control and map the share as RW.

Discussion:

Basically we need to either re-share the WS 2012R2 share inside NETWORK B but this time as READ-ONLY, or somehow configure user PCs to map the RW share RO. However, since some user PCs are not domain-joined, we can’t simply let them “see” the external share (requirement 3).

Temporary solution:

A Linux machine CIFS-mounts the WS2012R2 share and exports it as RO using samba. This works, but introduces another platform which is not desirable. Also, it is somewhat slower than a true Windows solution, and reparse points get “lost”.

Attempted so far:

  1. SMB sharing the SMB share
  2. mklink /d the share and then exporting the link
  3. SUBST command
  4. Various chains of the above 3
  5. DFS namespaces
  6. FTP sharing the SMB share (does not work well as a true map)
  7. NFS sharing the SMB share (windows keeps dereferencing all the way to the network path, resulting in failure)
  8. Share between a Hyper-V host and a VM
  9. Building SAMBA on Windows. Got quite far, but still unable to complete the build. Even if it builds, not hopeful that it will work correctly on Windows (unsupported)
  10. Proxying the requests via a router. No luck so far.

SD card is somehow read-only, from both Android and TWRP… how do I make it writable again?

My SD card is being weird.

I’m in TWRP, since a Lineage OS dirty flash (one without a wipe first) bricked my phone. Using the TWRP file manager, or the terminal, it doesn’t matter, moving files to it fails. Copying files to it fails. Deleting files from it fails. Formatting it fails. mkfs.ext2 from the terminal fails (vseek error). mkfs.fat doesn’t print any error, it may be returning a nonzero exit code but I can’t check. I’ve mounted and unmounted it multiple times, it doesn’t seem to help.

I’ve checked, and there’s no hardware switch on the SD card for read-only. Since it’s vfat, I’ve tried fsck.fat to no avail. Mounting it as rw didn’t really do anything, everything still fails (it was still mounted as rw afterwards, so it didn’t switch into read-only mode). All of that was tested from the terminal.

I’m not sure what’s going on. This is a perfectly reasonable SanDisk Ultra MicroSD card, that has worked before. Here’s the fsck output (I hit backspace on the first option, sorry for the ^H):

~ # fsck.fat /dev/lock/mmcblk1p1 fsck.fat 3.0.28 (2015-05-16) 0x41: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt. 1) Remove dirty bit 2) No action ? 1^H2 FATs differ but appear to be intact. Use which FAT ? 1) Use first FAT 2) Use second FAT ? 1 Reclaimed 7 unused clusters (229376 bytes). Perform changes ? (y/n): y /dev/block/mmcblk1p1: 310 files, 7718/973584 clusters 

My particular phone is a Samsung Galaxy Note 3, Verizon variant. I just rooted it and want to try a clean flash of Lineage OS but I need the ROM on an SD card for that. Either that or I can start a Windows VM to flash a ROM like that.

Read-Only Page Problem. Not Browser Interactive

Hi. I wanted a simple web page with a click-to-toggle background image feature. I found one online which works great, but it has a major flaw. The page is not browser interactive. It seems to be in read-only mode, or something like that.

ie; Links are inactive, embedded video loads but won't play, I can't copy/save embedded images, or highlight and copy page text to my clipboard.

There are 4 files used for this template. html page, css style sheet, jquery.js, and script.js files.
The…

Read-Only Page Problem. Not Browser Interactive

The Ubuntu filesystem became read-only and I can’t boot into it anymore

This has occurred twice now, in Ubuntu 18.04 and Ubuntu 19.04, I ran both alongside windows 10 on Dual Boot.

I had Ubuntu 18.04, I was moving data to my external hard drive and a file couldn’t be moved, when I cancelled it I noticed that all my folders on Ubuntu have become read-only, I change the permissions of my home folder and it was fixed. But after a reboot, I couldn’t boot into Ubuntu anymore. It was in the bios but I got an error while booting into it.

I used a live boot on usb with Ubuntu 19.04 and tried to fix it (I was told the reason might be an update from windows or because of fast startup so I stopped both, but it happened again) and it didn’t work so I just installed Ubuntu 19.04 instead since I was told the reason might be that my system is corrupt.

And now after a day of using Ubuntu 19.04, the same problem has occurred again, what can I do to fix it? I thought about formatting my external hard drive, but if that fails I’d lose all my data for no reason, so I thought I should ask first.

MS Access database opens in read-only mode

I have an Access database (format .accdb) in my Documents directory in my Sharepoint Online instance.

When I open the file, MS Access loads but it opens in read-only mode, showing the following:

enter image description here

If I click “Enable Content” the read-only does not change.

I have full access to the file and the directory it lives in; I can open .xlsx spreadsheets from the same directory and edit them in Excel. It seems specific to Microsoft Access.

How to set site collection readonly programmatically?

I created a custom action. This custom action is referencing to an application page. This application page is anonymous accessable. On this application page I have a button. When you click on this button the site collection needs to change to readonly.

I tried many solutions but I still got this access denied page. See below all solutions I tried:

Solution 1:

SPSecurity.RunWithElevatedPrivileges(delegate     {         using (SPSite site = new SPSite([Site GUID here])         {                           site.ReadOnly = true;         }     } 

Solution 2:

 SPSite site = new SPSite("mysitecollectionurl.com");                 {                     site.ReadOnly = true;                     //Set lock comments                     site.LockIssue = "Maintenance";                 } 

Solution 3:

SPSite site = new SPSite([Site GUID here], SPUserToken.SystemAccount) {                   site.ReadOnly = true; } 

Solution 4:

private void LockSiteCollection(SPSite Site)         {             //Try lock the Portal Site Collection                         try             {                 Site.LockIssue = "Your Lock reason";             }             //handle prior left out read only locks due to errors.                             catch (UnauthorizedAccessException)             {                 Site.ReadOnly = false;                 Site.LockIssue = "Your Lock reason";             }             Site.ReadOnly = true;         }