system-administration

How do I get a list of locked users in an Oracle database?

I want to be able to list all of the users in a given database along with an icon that determines whether they are locked or not. The problem I'm having is querying the "locked" status for a given user, I though it might have been on all_users but it isn't. Can anyone point me in the right direction? ...

Does C++ have standard libraries for common File Utilities

Hi all, I am looking for standard libraries in C++ that would allow me to do things like: Traverse a directory recursively search for files within a directory Check if file exists, folder exists or not and create it if not present. Check a folder hierarchy exists or create it if not found. Equivalent of mkdir -p Uncompressing / Compre...

How to better study Linux?

I'm taking a very basic university course on OS kernels and related stuff (process management, virtual memory, file systems, drivers..) I wanted to deepen my understanding of Linux in these fields, but also get to know it from a more practical point of view (important directories, the shell, important logs and files, hacking in general) ...

What among Bash/Python/Perl/Ruby/Sed/Awk for System administration , coding accessories.

I know the question is very subjective. But I cannot form the question in a much more better manner. I would appreciate some guidance. I often as a developer feel how easier it would have been for me if I could have some tools for doing some reasonably complex task on a log file , or a set of source files, or some data set etc. Clearly...

windows - allowing remote desktop machine to access local files

Hi, currently i have two machines A and B... both are running WinXP. I am on machine A and using mstsc to connect to machine B. Now, how can i see from machine B the cdrom, usb, disk drives of machine A? even more if connect any usb to machine A can it be automatically detected by machine B also? ...

Tools for viewing logs of unlimited size

It's no secret that application logs can go well beyond the limits of naive log viewers, and the desired viewer functionality (say, filtering the log based on a condition, or highlighting particular message types, or splitting it into sublogs based on a field value, or merging several logs based on a time axis, or bookmarking etc.) is be...

encrypt apache and mysql servers

I have a question about encrypting disks. I have 2 servers: 1 is apache for web/frontend and it talks to server 2 which is mysql. They are all for intranet only; no external access. I was looking into using PGP or GnuPG to encrypt the disks. I'm not clear, though, as to exactly how this would work. Where would the keys be stored? On t...

Java or Python for a System administrator ?

Hello, I'm currently studying to become a Networks/Systems administrator, and I would like to know what language do you recommend me to learn/improve that could be useful in my career ? I know Java it a lot used in enterprise as Application Servers (J2EE and co), but I also know that Python is used as script and some server-side scripti...

how to install rpm package to non-default path?

i have a rpm package, and i need to extract some files from it. The package is not relocatable, i have try "rpm --root/--prefix", which doesn't work. what methods i should take to do the extraction? Thank In Advace. ...

Add or update a configuration record in /etc/environment

Hello, My /etc/environment looks like this: cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" I wish to use a command (sed, awk, python, whatever....) that will make it look like this: cat /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"...

Rails logging error: "Error during failsafe response: Shifting failed." ... is there an elegant solution to this?

I've configured my Rails 2.3.8 logger in the environment.rb to rotate daily: config.logger = Logger.new("#{RAILS_ROOT}/logs/#{RAILS_ENV}.log", 'daily') and every day in the morning I get the usual: Error during failsafe response: Shifting failed. Is there a decent/elegant/better solution to this? What I've done in the past is just...

script, bat to monitor if a user is locked in active directory Windows.

Hi, there is a method to implement this functionality for monitor an specific user in active directory to check if this is blocked.(And if this is locked , unlocked this user automatically) Is a common user, that get blocked frecuently. Or there is a possibilty for avoid the "3 tries for login and then lock" for this specific user. I...

Invoking a COM Server Dll on a 64-bit Windows Machine

Hi! I'm having some 64-bit issues. Here's the scoop: I have 32-bit COM exe (written in FoxPro). This exe invokes a 32-bit COM dll (also written in FoxPro). In the 32-bit Windows world, the dll is placed in C:/Windows/System32 directory, registered with C:/Windows/System32/regsvr32.exe and all is well. The exe can be launched and an...

admininstration section

I'm building my first web application(i mean first huge web application)using php but i have some questions about admin section.what are the ways for making admin i mean i thought i could make it this way: First make an array: $pages = array('post' => 'posts.php', 'category' => 'categories.php'); And then read get var check if it's in...

chmod +s for Windows?

I have an executable that needs to run as an administrator on a Windows system, and it's started by a service. For the sake of simplicity and security, I'd prefer just to let the service run as the 'system' account, but would like the executable that it spawns to run with administrative privileges. Is there anything like a chmod +s on ...

Subversion: good practices to administrate users and groups with the repositories

How should I administrate users and groups with the repositories? Until now users can access the server repositories through http. The tag configuration it inside /etc/apache2/mods-available/dav_svn.conf <Location /srv/svn/> DAV svn SVNPath /srv/svn/projecX #SVNParentPath /srv/svn #if I have more the one repository inside the folder Au...

why smb returns NT_STATUS_INVALID_PARAMETER? How to fix smbclient?

Hi, I have a linux box that I use all the time and it always work with different machines. However, I also have a Windows box that is accessible from other windows box, but when I try access from the linux box I only get root@hosting02:/# smbclient -L //10.10.10.5 -U Admin Enter Admin's password: session setup failed: NT_STATUS_INVAL...