linux

Can't access to a user jailed by Jailkit

I am trying to jail a user, not permitting it to access anything besides it's home directory. I have installed this Jailkit, and jailed a user named customer01 as it described at Jailkit's official site. Seems I got everything correct besides some PAM configurations. When trying to switch the user to customer01 by su customr01 and typin...

How can I merge two files?

I have two files File 1: 7118 7457 7591 7539 8001 File 2: 5003 5008 5011 5026 5028 5029 5031 Output that i need 7118,5003 7457,5003 7591,5003 7539,5003 8001,5003 7118,5008 7457,5008 7591,5008 7539,5008 8001,5008 so on..... ...

How to view symbols in object files?

Hi, How can I view symbols in a .o file? nm does not work for me. I use g++/linux. ...

linux embedded bash script stucks on reboot

Hello, I have a simple script that at machine boot checks for a USB device, when found mounts, copies some files to the flash memory, unmounts and requires a reboot. what happens when I write to the flash is rm -rf folder_to_remove tar -zxvf from the usb key archive to the new location I found that if I comment those lines, so I do n...

Variable dissapears in binary which is available in static lib

Hi, I have the problem mentioned. I create an object inside a static lib, it is there when I run nm on the static lib, but when i link the lib to a binary and run nm it has disappeared. I know this problem has been asked before, but I could not find any answers. It is important for me to be able to retain that variable in the binary ...

Find which drive corresponds to which USB mass storage device in Linux

I have several USB mass storage flash drives connected to a Ubuntu Linux computer (Ubuntu 10.04.1, kernel 2.6.32-25-386), and I need to tell them apart programatically (from bash if possible, but I'm not afraid of compiling either) - I need to find which block device corresponds to which physical device (e.g. /dev/sdb1 -> device in USB p...

A Linux tool that will display errors as I type, Visual Studio style

I'm looking a tool that will display details of syntax errors in my code as I'm typing it, in the same way that Visual Studio does. I'm currently using Gedit, but am not adverse to acquiring a new text editor. I'm using C++ and HTML/CSS right now, but will be branching out to more languages in the future, so it needs to have support for ...

Handling crash dumps from Firefox and Google Chrome

Hey all, I'm developing a cross-platform NPAPI+XPCOM extension for Firefox and Google Chrome (Windows, Linux and Mac). I was wondering if anyone could enlighten me on the best practices of handling component crashes. As I understand it, currently Mozilla's Crash Reporter submits mini-dumps and crash reports created to Mozilla Dev. I ex...

How does nohup work?

Hello, What is performed behind the scenes when a program runs with nohup? Is the PID of the parent process being changed? Thanks. EDIT: I understood that nohup (and disown) causes that SIGHUP is not sent to the process if the parent process receives it. Does it mean that it is equivalent to handling SIGHUP (and actually ignore it)? ...

export image from powerpoint on server

I've been trying to convert my powerpoint presentations into individual images on a Linux server. I tried to use Google's API but because of a bug it only outputs one image. How can I do this? ...

Should we upgrade ubuntu server from 9.04 to 10.04?

We are running a pretty vanilla ubuntu server for web hosting and email. I am wondering what the pros are of upgrading to 10.04 of ubuntu? Any risks involved? ...

Question on wget

Can wget be used to get all the files on a server.Suppose if this is the directory structure using Django framework on my site foo.com And if this is the directory structure /web/project1 /web/project2 /web/project3 /web/project4 /web/templates Without knowing the name of d...

How to interrupt a fread call?

I have the following situation: There is a thread that reads from a device with a fread call. This call is blocking as long as there is no data send from the device. When I stop this thread it remains hanging inside this thread. Now I found the following inside the man page of fread: ERRORS On all systems that conform to the...

list of file owners in folder on linux

I have a folder with many files. The files have been created by many different users. I do not know about shell scripting. I need to get the list of the username (only) of the owners of the files. I may save the output of ls -l and then parse it using perl python etc... But how can i do this using shell scripting? ...

How to create a share folder for multiple domains on Dreamhost

I have a Virtual Private server with Dreamhost. I'm trying to create a shared folder that all of my domains can access. In the folder I'd like to put PHP classes, and even static files like javascripts. I've created a directory on the same level as my domain folders. I'd like to call a file via something like this... /home/username/sh...

how can i leave windows and go too linux ?

i am a java developer. i used windows OS in all versions for years, and now i'm using windows 7 how can i leave windows and go to linux and not working like a very Beginner user. i dont know the path exactly. and i dont like to close my hands in the new OS. which version edition should i use and why ? should i start from the command or t...

301 redirect urls

Hi I'm trying to redirect an old url to a new one using 301 I need an example of RewriteQueryString for the following 301? http://www .example.com/search/?depId=1&typeCatId=1 to the following http://www.example.com/mens/clothing So when I type in the long URL in the browser, I am redirected to the new, shorter URL Any ideas? ...

How to know system is currently installing ISO

I am creating an RPM. This RPM will be packed with the CentOS ISO and will install when CentOs is installed. This can also be installed using normal rpm installation method. But rpm installation need to behave differently if it is installed from ISO and installed by rpm normal installation method. So, the question is how do I know whethe...

Creating a System Call in Linux

We just got a midterm project today for my "operating systems" course, we are requested to implement a system call (and I guess I assume we'll have to write a piece of code to call it). I understand I'll need to update the table of the system calls (can't remember the name, but no biggie), as well as create a kernel module that the tabl...

utf-8 file displays doubled characters

A generated utf-8 file displays properly in the terminal: but not in Firefox or gedit: It looks like the characters are doubled with weird ones? The file: http://maestric.com/shared/other/2004_10_14.txt Any idea on what is wrong with it? ...