These questions are about Linux in general -- NOT specific to a particular distribution. If the question just happens to be in a Linux environment, please specify your Linux distribution in the body of your question, but do NOT use the /linux tag.

learn more… | top users | synonyms

2
votes
2answers
4k views

Linux (RedHat) `sudo su -l <<user_acct>>` does not source profile

As stated, having trouble with loading the default profile of <<user_acct>> when doing sudo su -l <<user_acct>>. Inside .profile, if [ -r "${HOME}/.profile.custom" ]; then ...
0
votes
1answer
162 views

Force Debian kernel version

I need Debian with kernel 2.6.34.8 Is there any way to force Debian with it? I don't want to install and then compile version I need.
6
votes
1answer
3k views

Which parts of an ELF executable get loaded into memory, and where?

What I already know: An ELF executable has a number of sections, obviously the .text and .data sections get loaded into memory as these are the main parts of the program. But for a program to work, ...
3
votes
2answers
339 views

How is the kernel loaded?

I am trying to understand the Linux boot process, and after reading quite some amount of documentation there is one point that I still can't seem to understand. So the basicis is BIOS -> Grub MBR -> ...
3
votes
3answers
950 views

Start rsyslog as unprivileged user

On Debian, rsyslog runs by default as root (due to POSIX compatibility). It can drop privileges after start, but a cleaner way would be to start as a non-privileged user. Could somebody please advise, ...
3
votes
1answer
3k views

LDAP authentication broken with upgrade to CentOS 6.4 (sssd)

I have OpenLDAP server: @(#) $OpenLDAP: slapd 2.4.23 (Aug 8 2012 16:29:21) In my configuration have group: ldapsearch -x -b 'cn=groupname,ou=UnixShell,ou=Services,o=example,c=ru' # extended LDIF ...
13
votes
6answers
2k views

Can a Linux command have capital letter(s)?

Can a Linux command have capital letter(s)? I know it's supported but i want to be sure if it's a "problem" or considered "not a good thing"?
0
votes
0answers
166 views

Booting 32bit CentOS from external HDD on Lenovo IdeaPad Y580

I've got Lenovo IdeaPad Y580 with a 64bit CPU and I would like to boot it from my external Toshiba HDD with a 32bit CentOS 6.4 installed on it. However all my tries ended up with kernel panic: not ...
2
votes
1answer
6k views

How to put value of echo pipe netcat commands into variable [duplicate]

I have this command succession: echo -ne "/dev/shm/test.sh" | netcat 89.196.167.2 4567 and let's say it return a string like, for example "Hello...bla". (on the 89.196.167.2 i have made a server ...
1
vote
3answers
3k views

Taking away a User's Read/Write/Execute Permission

So I have a user that is able to go in /etc and read files like httpd.conf. I would like to deny that user access to any critical locations such as /etc, /var and so on. What would be the best way ...
5
votes
1answer
590 views

Mystifying command not found at login

I've just set up Arch Linux (not my first time). Everything installed correctly but when I login (X isn't installed yet) I see: Arch Linux 3.8.4-1-ARCH (tty1) mgoszcz2 login: root Password: Last ...
8
votes
2answers
714 views

Cleaner way to delete files on Linux which include a datestamp as part of file name

I have a new requirement to purge MySQL dump files that are older than 30 days. The files use a naming convention of "all-mysql-YYYYMMDD-HHMM.dump". The files are located on SAN mounted file system, ...
2
votes
2answers
321 views

Keeping disk caches when hibernating

Is there a way to keep disk caches when hibernating Linux? I understand and agree that dropping them is the best option all-around. But my system is unresponsive after resume and I would like to give ...
8
votes
2answers
778 views

Linux cache evictions

Looking at how the VFS cache on my Linux machine behaves, I can see that even when effectively idle (crond and most other daemons stopped, interfaces down) the amount of free memory gradually ...
1
vote
1answer
581 views

Using xdg-open odt files

I am writing a document database using perlTk. Upon double clicking the selected file on my GUI I use xdg-open to use the default application to open the file. I am having some issues opening .odt ...
2
votes
0answers
2k views

nscd uses 100% cpu

I'm working on a linux box and the output of top reveals that the command nscd (user nscd) is using 100% of CPU. I'm uploading a flat file to MySQL from this box, and it is taking a long time (albeit ...
0
votes
0answers
64 views

I have replicated partition after I delete it using diskmgmt

I'm a linux newbie, and I messed my partition. I have 5 partition in my 500GB HD, Windows 7, Data, Data, Linux Mint and Lubuntu. I accidentally deleted Lubuntu partition using diskmgmt in Windows 7. ...
-1
votes
2answers
488 views

Can I name my own LFS distro?

The question is... about LFS (Linux From Scratch), if I would build a Linux system, with LFS, is it 100% mine? Could I say I made all this from scratch?
5
votes
2answers
2k views

Where is the virtual memory stored on hard drive?

If a process wants to access a memory address that is not in physical memory, the OS outsources a page frame from physical memory to the hard drive for later use. Where on the hard drive is this data ...
1
vote
1answer
1k views

How do I manually modify an inode?

I am using Ubuntu Linux and, just for fun, I want to create a hardlink to a directory (as seen here). Because I'm just doing this for fun, I'm not looking for any sort of pre-developed ...
1
vote
2answers
101 views

How do i move a pieces of data between two words if the data has a % percent symbol at the begining?

I have a log file looking somtheing like : SWEs-elmPCI-A-01(config)# class AutoQoS-VoIP-RTP-Trust ^ % Invalid input detected at '^' marker. SWEs-elmPCI-A-01(config)# ...
-1
votes
1answer
3k views

Oracle 11g R2 on Redhat 6

I have a Solaris background, and I am new in RHEL, and I want to install Oracle 11g on it. I downloaded Oracle documentation, that illustrate how to install it for RHEL 6. The following or later ...
1
vote
3answers
107 views

How can i check for existence of color in my linux box?

I want to do something like this in my linux box: if [[ colors exist ]];then echo "some text in colors" fi my doubt is : i am using sed to put colors in log file for some text but if the linux box ...
-1
votes
2answers
138 views

Why rsh not opens and reads PAM modules and limits.conf?

I am working on a project, that uses rsh utility for remote connection. But my project needs some extra features for that, so I add that features. Till now, all the things are going fine. But when I ...
0
votes
2answers
80 views

How many types of architectures and OSes

I am trying to write a script python script that is supposed to run across all linux based OSes. The python script invokes executables of few existing tools(for example pathload and iperf) that I have ...
1
vote
1answer
839 views

Creation of a WORM file

I wanted to create few files which are Write Once Read Many (WORM). How do I do this? I assigned a permission level of 4000 to a file. Also I have to set retention to the files. So I created a file. ...
1
vote
1answer
799 views

Opening lid results in black screen (Dell Laptop with ATI Graphics, Ubuntu 12.04, 3.2 kernel, GNOME 3)

For the past few weeks, when opening the lid my laptop often fails to recover from suspension leaving me with a blank screen. Further, when this bug occurs, the laptop fans continue to run while the ...
4
votes
2answers
151 views

Reference documentation for cgroups (control groups) settings

I'm looking for some reference documentation to explain what each of the settings are, for each control group. For example, there's cpuset.cpus, I think setting this to 0 means use all CPUs, setting ...
37
votes
7answers
12k views

Block network access of a process?

Is it possible to block the (outgoing) network access of a single process?
1
vote
2answers
223 views

How do I make the 'man' utility as comprehensive as ss64.com?

The 'man' utility that comes with a Debian distro is not as comprehensive as ss64.com, and in environment like cygwin, it is even more so. Is there a software or a script that will make my 'man' more ...
1
vote
1answer
3k views

External drive not being recognized

I am currently running elementary OS (a Linux OS based on Ubuntu so everything in Ubuntu works in it) - dual booting it with Windows 8. I have a 3TB external hard drive (USB 3.0) that does not seem ...
1
vote
1answer
88 views

Enforce strict outbound ports (or ranges) for protocol

Is it possible to narrow the allowed range of outbound ports that can be used for a specific protocol (e.g. HTTP(S))? I understand that, by default, the system will randomly allocate any available ...
3
votes
3answers
815 views

Linux stack for a home network firewall/proxy?

I've got a generic home 'network' where my ISP supplied modem acts as router with a software firewall built-in. My PCs connect directly to this router to access the Internet. I want to place a box in ...
2
votes
2answers
3k views

Connecting to host by SSH client in Linux by proxy

I am really struggling with this. My host (A) is behind a proxy/firewall (PF) and needs to connect to host H. The proxy has HTTP/FTP/SOCK proxy configured and I have no issue to configure in ...
1
vote
2answers
5k views

Help with assigning output of grep to a variable

I hope someone can help me here. I'm trying to assign the output of a grep command to a variable in a bash script and the variable comes up empty. When I run the following: el_value=$(grep ...
2
votes
1answer
677 views

Non-graphical tty's not stretching full screensize

on tty7 (graphical environment) nothing's wrong, I can enjoy the whole pixels of my screen which is the main thing. But here's something a bit annoying, when I switch on terminals from 1 to 6, the ...
3
votes
2answers
801 views

Where to find the VBR on the /dev/sda1 partition?

I have one built-in hard disk /dev/sda which looks like this: Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors Units = sectors of 1 * ...
2
votes
0answers
2k views

How to retrieve sysfs devpath of a USB flash drive given its corresponding partition sysfs path?

I have a USB flash drive connected to a hub. Its storage device partition devpath in sysfs is /devices/pci0000:00/0000:00:12.2/usb6/6-1/6-1.2/6-1.2:1.0/host10/target10:0:0/10:0:0:0/block/sdb/sdb1. I ...
16
votes
2answers
6k views

Can the same ext4 disk be mounted from two hosts, one readonly?

I know that mounting the same disk with an ext4 filesystem from two different servers (it's an iSCSI vloume) will likely corrupt data on the disk. My question is will it make any difference if one of ...
2
votes
1answer
97 views

How do I change the colour of all lines to red begining with a % symbol?

When I use sed -i "s,.*%.*,$(tput setaf 1)&$(tput sgr0),g" A.log the whole line vanishes and when I use sed -i "s,^%.*,$(tput setaf 1)&$(tput sgr0),g" A.log only the first character(%) ...
4
votes
3answers
21k views

How can I redirect ports 80 and 443 to 8080 and 8443 with iptables?

I'm looking at the documentation for a Tomcat 6 webapp called DSpace, specifically in regardds to running Running DSpace on Standard Ports (80 for http:// and 443 for https://) I am trying to use ...
1
vote
1answer
319 views

Set up proper programming environment

I'm starting to think how to set up the most convenient environment for programming, with the following conditions. I run Linux Mint 14. I've got a computer at work but would like to have access to ...
5
votes
2answers
26k views

How to add self to sudoers list?

I've added myself into the sudoers users list by using the command root@debian:/home/oshirowanen#adduser oshirowanen sudo If I try to run that command again, root@debian:/home/oshirowanen# ...
0
votes
1answer
29 views

Auditing of gdb commands

Is there a way I can log all gdb commands executed by a user? And do user level logging? Is any other tool like gdbserver can help in this case ?
0
votes
2answers
103 views

Read only mode in gdb

Is there gdb read only mode ? Is there way I can restrict gdb level to read only. So I will not be able to modify current data in gdb. Can gdbserver or any other tool help in this case?
0
votes
1answer
145 views

How given script makes executables in /usr/local/bin/

While doing project , I found a script that is bounced over my head. Can you help me to understand this script . Please explain this script step by step. SCRIPT if ! [ -f /usr/local/bin/XXX -a -f ...
2
votes
1answer
1k views

Why is my unmounted USB disk still seen by `fdisk`?

I've mounted my USB disk to /mnt/kingston/ dir, and umounted it from there by typing in umount /mnt/kingston/. But I can still see my USB disk after issuing the fdisk -l command. Why? If I type ...
1
vote
2answers
468 views

Is it better to pass all files to mv or to run a bunch of mv processes in parallel?

I have three ways of running mv. First: mv /db/dbfile1 /db/dbfile2 /db/dbfile3 /usb_storage/ and second: mv /db/dbfile1 /usb_storage/ & mv /db/dbfile2 /usb_storage/ & mv /db/dbfile3 ...
-1
votes
1answer
200 views

SSH File Transfer

Is it possible for me to use SSH to transfer files from my linux computer to my macbook, if so, can anyone post a brief tutorial? I kind of understand how to use SSH, but I need to know how to find ...
7
votes
1answer
3k views

Why is systemd-coredump storing the dump in memory itself?

I just noticed that most of my memory was hogged by coredump of a few processes that I had killed recently. I had a systemd-coredump process running for each crashed process (usually the processes ...