The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
44 views

Where Is MySQL installed on My Machine?

What is going on, everybody? Recently I have installed MySQL server on my Debian machine using Advanced Packaging Tool, and I am curious where it is installed and how I can find all the source files ...
0
votes
1answer
37 views

Unidentified network connections

I have an external-facing ftp/webserver (with virtual hosts) running Ubuntu 12.04LTS, and I have some concerns about some network traffic I'm seeing. Some background. I tried to be as preventive in ...
0
votes
1answer
41 views

How to issue a warning to administrator (when the administrator issues a system restart) when user has process running

Background I work on a development team and for each project we have a different server setup to emulate the environment of our customers. It can be hard to keep track of what I was doing on each ...
3
votes
1answer
45 views

How does iptables recognize packet state?

Consider these two sets of rules: Set A -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT -A INPUT -j REJECT -A OUTPUT -j ACCEPT Set B -A INPUT -m conntrack --ctstate ...
0
votes
3answers
41 views

Get contact information of system administrator from the terminal

Do any of the common Unix/Linux platforms provide a way to query the system administrator contact information from the command line. Obviously a system admin might not include this information when ...
1
vote
3answers
137 views

Why is the 'sudo' password different than the 'su root' password

On my personal machine, I often type sudo in front of certain commands in order to accomplish administrative tasks. I had hoped to avoid doing this throughout the day, by typing su root and providing ...
2
votes
1answer
48 views

Manage another Linux installation on another partition in the same computer

How can I manage (install packages, manage packages, check for updates and the like) for another Linux installation on another partition in the same machine? I would be doing this from Ubuntu, and ...
3
votes
1answer
64 views

What is a program I can use to mess up a GNU/Linux system in an automated way?

I once ran across a program that, when run on a GNU/Linux system, would automatically screw up something about the system. Maybe it would corrupt the users database. Maybe it would mess with the boot ...
1
vote
2answers
94 views

Does DM-Crypt partition look like random noise?

If I format partition with dm-crypt does its entry in partition table suggest somehow that this partition is encrypted or for someone from outside it looks like regular partition with random noise ...
5
votes
0answers
96 views

Logging violations of rules in limits.conf [duplicate]

I'm trying to log the details of the programs that where failed due to the limit cap defined in the limits.conf. My initial plan was to do it using the audit system. The idea was to track the system ...
1
vote
1answer
167 views

How to prevent users from renaming files while providing write permissions on Linux [closed]

For some special purpose, I want to prevent non-root users of the Linux Server from changing or renaming the filenames. However, they can modify and write to the contents of the file. How to do this ...
0
votes
1answer
50 views

How to auto-start my bash_profile? [duplicate]

When I open a new terminal, it doesn't execute auto-start my bash_profile. I need to do "source .bash_profile". When I use Screen, it happens again.
0
votes
2answers
131 views

Debian [ Wheezy ] : Suricata : LibHTP outdated

While looking to test suricata from the Debian Wheezy repo I ran into an issue. cat /var/log/suricata/suricata-start.log 23/9/2013 -- 19:25:03 - <Info> - This is Suricata version 1.2.1 (rev ...
0
votes
5answers
124 views

change of Unix default directory structure [closed]

Is it possible to change the default Unix/Linux directory structure? I mean by configuration and without need to change the kernel. Or if the kernel has to be edited, how hard is such task? Is the ...
7
votes
3answers
181 views

Linux/Unix variant for training system administrators

Is there a Linux/Unix based operating system used for training sysadmins? Some bugs would be deliberately included in the system and the training candidate is supposed to solve all of them. It should ...
0
votes
2answers
100 views

Vim: searching upward/downward in file from specific point/position

I want to search a word from my current cursor position in vim to upward in file. How to achieve this? Also how to do same for downward in file.
23
votes
2answers
768 views

Why did a new user inherit files from a deleted user?

So I had to do an exercise in a book as homework. First you had to create a user like: useradd -c "Steven Baxter" -s "/bin/sh" sbaxter Then you had to add some files to the /home/sbaxter directory: ...
3
votes
1answer
898 views

How to get Oracle java 7 to work with setcap cap_net_bind_service+ep

I am trying to grant the java executable the right to open ports below 1024 on Linux. Here is the setup /home/test/java contains the Oracle Server JRE 7.0.25 CentOS 6.4 Here is what getcap ...
2
votes
0answers
57 views

How to specify a daemon shutdown command with upstart?

In an upstart configuration how do I define what command should be used to shutdown a server. Lets say I have daemon that has two seperate processes. startup.sh - to start the server shutdown.sh ...
13
votes
4answers
797 views

Is it possible for a sysadmin to eavesdrop on his/her users' terminals?

When logged in to a machine, I can find out each user's pseudo-terminal device(s) from the output of w. Being a sysadmin, is it possible for me to eavesdrop on this terminal without the user being ...
0
votes
2answers
91 views

Can't Change CUPS password

I am running CrunchBang based on Debian 6. I can't do anything printer related. It is saying I am unauthenticated. I have tried: family@familydesktop:~$ sudo lppasswd -a family Enter password: Enter ...
0
votes
1answer
126 views

Which book of those two should i read to study networking for Unix/Linux administrator? [closed]

I'm quite a beginner to networking, I want to get the information that i need as a Linux/Unix admin. I have two books in hand right now: TCP/IP Illustrated, Volume 1: The Protocols UNIX and ...
2
votes
1answer
282 views

Should I use useradd or adduser?

I am trying to add a new user to the system. I am confused though which command to run: useradd or adduser?
4
votes
1answer
91 views

Distributing Updates to VirtualBox Images with (Bandwith) Efficency

I'm currently responsible for a lab of machines that all need to run the same virtual machines. I want to automate my current setup of distributing VirtualBox virtual machines via rsync (erasing any ...
0
votes
1answer
109 views

LPIC-1 for non-professional experienced user

I am interested in trying out the LPIC-1 certification however I am slightly worried that I may not have the needed professional experience to pass. I am still studying hard and running a lab with a ...
0
votes
3answers
117 views

How to limit administrative privileges to various config files?

I want one administrator to be able to edit the /etc/fstab file but one administrator to not be able to edit the fstab file. Both administrators need access to all other administrative tasks. Is ...
2
votes
3answers
237 views

How can I see which package manager is running?

I'm on Debian 6.0.5 (squeeze) and every now and then I see the following icon in the notifications area of the GNOME2 pannel: but black instead of red. It reads A package manager is working. Usually ...
2
votes
4answers
449 views

Hardware and software inventorying

Objective Collect hardware and software information from lab computers, respecting students' privacy. Type of information to collect Examples: System memory Bash verion JVM version Operating ...
3
votes
2answers
1k views

SELinux: Can I disable copying of certain files?

Please excuse me if this is too basic and you're tempted to throw an RTFM at me. I want to prevent users from copying certain files while granting them read access to the same files. I thought this ...
1
vote
1answer
727 views

Rehashing /etc/shadow. Can I force NIS users to change password?

I'm currently migrating a CentOS environment to a Debian one. The users log in over the network using NIS. I was hoping to copy /etc/shadow from my old server to my new one so that we can offer ...
0
votes
1answer
210 views

How do I safely perform the below changes to network parameters on Solaris 10?

I need to change and test some TCP/IP network parameters on a Oracle Solaris 10 as a possible workaround for a bug in 'Oracle Hyperion EPM 11.2.1.0' in the development environment. I am not a ...
2
votes
2answers
43 views

Reassign users to a single group

Right now one of our server is setup such that all users are in their own group. Is it possible to reassign them to a single group and then allow each user READ only access to other user's ...
6
votes
6answers
838 views

How to prevent a mistaken rm -rf for specific folders?

I think pretty much people here mistakenly 'rm -rf'ed the wrong directory, and hopefully it did not cause a huge damage.. Is there any way to prevent users from doing a similar unix horror story?? ...
3
votes
1answer
252 views

How can I set a directory maximum size?

Is there an easy way to cap the size of a directory? I don't think there is but just wanted to make sure. I would like to set max directory sizes for some user home dirs as well as some other dirs, ...
3
votes
4answers
2k views

How can I assign an initial/default password to a user in Linux?

I found a guide that explains how to set a user's password. I'm trying to automate it and send an e-mail to the user like: userid created with password XYZ. request to change the initial password. ...
0
votes
1answer
422 views

How do I force a user to log out? [duplicate]

Possible Duplicate: How do you kick a benign user off your system? I'm trying to remove a user account with the userdel -r command. However, it says that it is unable to remove the user ...
2
votes
2answers
182 views

How do I check active crons?

I'm trying to hunt down a cron job (or the equivalent) which I know is running, but I can't find it in the default cron files for my system (FreeBSD / Linux / BSD). How can I tell which ones are ...
2
votes
3answers
5k views

CentOS 6 - nameserver entry in resolve.conf resetting after restarting network services?

In /etc/resolv.conf, I've changed the nameserver line to a new IP address. After saving and exiting, I run service network restart. I then go open /etc/resolve.conf again and see that the IP address ...
1
vote
1answer
131 views

Package managers for local installations under home directory [duplicate]

Possible Duplicate: Non-Root Package Managers I work extensively on a remote system where I do not have admin rights. However, I am allowed to install my own binaries and programs under my ...
0
votes
2answers
64 views

How do I get a list of all enabled media in Mageia via CLI?

I have read URPMI from Mageia wiki but there seems to be no mention of how I can check the currently enabled media using urpmi command. There is urpmi.addmedia and urmpi.removemedia. So I tried doing ...
1
vote
1answer
71 views

Embedding a cmap in moinmoin

I'd like to embed a cmap in a moinmoin wiki page. I generated the cmap using dia. I then copy pasted the generated html code, modified it to point to the png image I attached to the wiki. However ...
5
votes
5answers
382 views

Which tasks to learn and which books to read to become more skilled at Unix/Linux internals? [closed]

I recently interviewed at a major company and did well on programming questions such as: "What is the time complexity of quicksort? What is the opposite in C of malloc? What is the opposite in ...
6
votes
5answers
450 views

What are the recommended ways of defending a remote *nix install from a hamfisted admin?

Once in a while (often a long while), I have a difficulty where I execute a command that completely screws up a Linux machine. Most recently, I accidentally mounted-again the root partition (thinking ...
7
votes
3answers
506 views

Linux Bulk/Remote Administration

Beside our internal IT infrastructure, we've got around 500 Linux machines hosting our services for the on-line world. They are grouped in a bunch of clusters like Database A-n, Product A-n, NFS, ...
8
votes
5answers
4k views

How to know if /dev/sdX is a connected USB or HDD?

How can I know if /dev/sdX is a local HDD or usb key ? best doing this without root privileges. OK , udevadm helped a lot: For local HDD: udevadm info --query=all --name=sdb | grep ID_BUS E: ...
1
vote
2answers
2k views

mounting to non-empty directory, then later deleting original files

I have some unused space on my disk, and decided to use a little of it to create a separate /var partition. There might be an easier way to do this, but my idea is to copy the existing /var ...
0
votes
1answer
697 views

The TIME field in ps -ef

When I do ps -ef, I see "TIME" field. What does this field mean? From what I understand, this tells the actual CPU time, that the process got (amidst all the context switching). Does the TIME field ...
3
votes
2answers
3k views

How to see complete list of processes in top

When I do 'top', I learn that there are many processes running out of which many are in sleep state. I need to see complete snapshot of all processes at that point. the 'top' is able to show listing ...
8
votes
2answers
4k views

How to know reason of a process going to sleep state and wake it up?

When I do 'top' , I see my perl script process in 'S' state. Is there a way to know, what is making this perl process go in sleep state and ways to wake it up? Any way to debug to give more insights ...
0
votes
1answer
539 views

Need help with understanding output of ps -ef on linux

When I do ps -ef on my Linux box, I get: UID PID PPID C STIME TTY TIME CMD Please help me with meaning of C,TIME. is the TIME , the actual cpu time allocated to the process?