Search Amazon.com:
Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us $3,400 per month for bandwidth bills alone, and since we don't believe in shoving popup ads to our registered users, we try to make the money back through forum registrations.
«8 »
  • Post
  • Reply
Misogynist
Jul 14, 2003

hubthumping

Edit: Never mind, stupidly easy question

Misogynist fucked around with this message at Jun 24, 2007 around 16:19

Adbot
ADBOT LOVES YOU

Misogynist
Jul 14, 2003

hubthumping

FrontLine posted:

I'm looking for the command to assign a directory a certain amount of size. I'd like assign a file called 'Jimmy' a maximum size of 9GB and it will show up as such when I run 'df -k'.
dd if=/dev/zero of=$FILENAME bs=1 count=1 seek=9G will create and allocate a 9 GB file, but without actually writing 9 GB to disk.

Misogynist
Jul 14, 2003

hubthumping

FrontLine posted:

Can you explain what this is going to do?

edit: thanks I'll try it now.
edit2: i dont think this is quite what im after.
Honestly, you're not going to find what you're looking for without LVM.

FrontLine posted:

It's like creating a partition just for that directory.
Do that.

Misogynist
Jul 14, 2003

hubthumping

nbv4 posted:

Anyone know what I'm doing wrong?
I think that by default users in Pure-FTPd can't log in if their login shell is /sbin/nologin, /bin/false, or similar. What's its shell?

Misogynist
Jul 14, 2003

hubthumping

coconono posted:

I'm having a bad sysadmin day

Is there some way to setup Samba users without having to create them as linux users?

Further fun, I have to do it from the command line because the VNC server is ghetto.

EDIT: guess not. Looks like Samba depends on the info from /etc/passwd. boo.
NT LAN Manager hashes are transmitted in a form that can't be reversed, rehashed and checked against standard Unix password hashes. You can authenticate against Samba without maintaining a separate password database, but it requires an Active Directory server functioning as your Kerberos KDC on the backend.

Edit: Just realized I answered a question totally different from the one you asked

Misogynist
Jul 14, 2003

hubthumping

hooah posted:

I want to format over my Ubuntu drive. Do I have to do anything with Grub first (on the Ubuntu drive), or will booting go back to the way it was if I go right ahead and format?
Boot into the Recovery Console from the Windows install CD first, and run fixmbr and fixboot to reinstall the Windows boot loader. If you don't do this, GRUB will try and find grub.conf on a partition you just wiped, and you won't be able to boot poo poo if you haven't memorized "rootnoverify(hd0,0), chainloader +1, boot" or whatever it is.

Misogynist
Jul 14, 2003

hubthumping

nbv4 posted:

I forgot to mention that lftp for some strange reason is not compatible with my ftp server. When I try to get a directory listing, it gets stuck on
code:
`ls' at 0 [Making data connection...]
I tried everything, I can connect to other ftp servers without a problem, just not mine. The only solution was to use another ftp program. Are there any other ftp "cli"ents that have an exclude feature?
You're trying to use ftp PORT mode, but you have a firewall (likely just a NAT router) sitting in front of your PC. Use passive mode instead.

Misogynist
Jul 14, 2003

hubthumping

Kaluza-Klein posted:

I don't have any sort of dns cache
Are you sure nscd isn't running?

Do your primary and secondary nameservers return the same result as one another?

Misogynist
Jul 14, 2003

hubthumping

Lots of people use SUSE, but you're going to find it a lot easier to get help with a RHEL-alike distro.

Also: "reigning."

Misogynist
Jul 14, 2003

hubthumping

Jerk McJerkface posted:

Nope, not working.
yum clean all

Misogynist
Jul 14, 2003

hubthumping

Jerk McJerkface posted:

Hey, just a quick question, I'm having a miserable time setting up proftpd on my Ubunutu 8.10 file server. I've set FTP before on Centos a few times with no problem, but for some reason I just can't get it to work. Can someone give me a sample .conf file or give me some guidance on user names?

I have a few users already setup, one is called "htpc" and has a home dir of /usr/media but when I try to login to the FTP from my Windows 7 box it doesn't give me a log in, and takes me to a blank explorer window. I think it's a user/permissions problem but I can't get it working.
You most likely have anonymous access enabled, but I'm siding with the rest of these guys -- SFTP is much nicer. Just make sure you assign people an scponly shell if you don't want them having shell access to your system when you give them SFTP.

Misogynist
Jul 14, 2003

hubthumping

Zom Aur posted:

Oh, and I guess you should edit their lines in /etc/passwd to something like '[user]:x:[uid]:[gid]::[/user/home]:/bin/false'
for each user. That'll keep them from getting a shell if they try to login with ssh.
This will prevent them from being able to log in at all. You really want scponly or something similar.

Misogynist
Jul 14, 2003

hubthumping

JHVH-1 posted:

Setting up vsftp isn't that hard. On Ubuntu server anonymous is enabled, so you want to change that to NO and then change local users to YES and value to chroot local users to YES, unless you only want to chroot certain users. In that case you set the chroot file to some place in /etc/, create the file with an editor and put the users you want to chroot on it. I think thats about it.
If you're running iptables you need to enable the ip_conntrack_ftp module and you need to either make sure your NAT gateway is smart enough to do the same or open a bunch of static ports for passive FTP.

Misogynist
Jul 14, 2003

hubthumping

baalzamonbarnes posted:

I'm running some UNIX/Linux servers at home right now as web/email/file/etc servers to provide basic network services to my roommate and friends. Most of these people either don't know what Linux is, or can't be bothered to learn anything about it, but I would like to be able to provide them with user-friendly access to their accounts on the servers. I know enough PHP to set up a basic user account management application, but I'm interested in using it to control the actual Linux user accounts, since these are the accounts used to access most of the network services (email, samba/nfs file sharing, etc).

I know allowing apache the ability to change files and run programs is not a route I really want to take for security reasons, but I assume there's a way to do this considering all of the hosting control panels available (cPanel, etc) that seem to do this. What is the preferred (and secure) method for allowing a php or other web-facing application access to changing user passwords and viewing user account details? I'd rather not install a full blown hosting control panel, since I just want my users to be able to change their passwords without telling me or logging in via ssh and running passwd.
Run a privileged service that communicates with the web layer via IPC.

Misogynist
Jul 14, 2003

hubthumping

Trick question, XP will trash your MBR without asking

Misogynist
Jul 14, 2003

hubthumping

teamdest posted:

Does anyone have a recommendation for a music server with a web interface that can run on a headless server? I've got a Debian box running as a file server, with SABnzbd+ on it as well, but I'd like to also make it so that rather than just sharing my music and playing it locally in winamp I can connect to it remotely from any computer and play music as if it were a music repository. I don't know if this request makes any sense, I'm basically asking if there's software that creates a dedicated "music" server separate from Samba.
Subsonic

Misogynist
Jul 14, 2003

hubthumping

If you have ACL support the easiest way is to do a setfacl -m default:group:owner:2777 /path.

This will only apply to new files and will not apply to files copied from elsewhere. Those files will retain their permissions.

Misogynist
Jul 14, 2003

hubthumping

bitprophet posted:

Misogynist is right that ACLs may help here, but assuming you're copying files into that folder by hand somehow, you'd probably need something awful like a cronjob that runs every minute and performs the chmod.
Negative. This is what incron was made for.

Misogynist
Jul 14, 2003

hubthumping

Severed posted:

My stupid question (for now) is if I have Fedora 11 installed and Red Hat releases Fedora 12, how do I update this? Is it just a kernel update or am I installing a patch for the OS itself? Sorry, I know jack poo poo here.
Technically, you can update the OS with a yum update or by popping in the CD, rebooting, and picking "Upgrade," but a lot of things will probably break. Fedora, especially on x86_64, isn't really known for clean upgrades and you're best off doing a fresh install when you can.

Misogynist
Jul 14, 2003

hubthumping

Severed posted:

Alright then. I am going to dedicate an entire hard drive to Linux, and I want to configure it so that the kernel will go on it's own partition (/boot?) and maybe even make a few other partitions just to help segregate the data incase I gently caress something up... which would make using the backup utilities a little easier.

Advice?
Make /home and /boot their own partitions but forget about everything else. It's just unnecessary complexity and it substantially improves the chances of you screwing something up catastrophically right out of the gate.

Misogynist
Jul 14, 2003

hubthumping

Severed posted:

You could also just experiment with other x-windows too.
What the great Googlin' Christ does this even mean

Misogynist
Jul 14, 2003

hubthumping

mcsuede posted:

Wondering if there are any filesystem compression utilities that work on Ubuntu similar to NTFS on-the-fly compression.
Btrfs supports transparent compression.

Misogynist
Jul 14, 2003

hubthumping

Bob Morales posted:

Here's a question, more related to webhosting I guess.

If you have 50 websites hosted on your server, and 25 of them use the same script (say for a blog or image gallery), do you have to install that script 25 times in each users web directory?

It seems wasteful, so I just wonder if that's the way that it's done.
Either an app supports multiple instances (e.g. Wordpress Multi-User) or it doesn't.

Misogynist
Jul 14, 2003

hubthumping

angrytech posted:

I work IT at a small university in Minnesota that uses Active Directory for everything. I'm jealous as hell and would like to replicate all the functionality on my personal domain.
Specifically I'd like to be able to add a system to a domain, log into a computer using a domain account, etc.
Is there a unix equivalent to AD? Or do I have to set up something like ldap, kerberos, and BIND independently? (just a guess as to what programs I'd need)

Edit: What specifically would you recommend? Is Samba4 worth it? Is LDAP+Kerberos a total pain?
LDAP and Kerberos is very easy, at least for basic login stuff, once you understand how each works, but there is an open-source version of Likewise that you might want to be looking at.

Misogynist
Jul 14, 2003

hubthumping

Firefox uses its own DNS resolver rather than the OS's. Baseless speculation suggests to me that your primary nameserver is working fine, but your secondary isn't. Whatever assumptions you make about what's causing the problem, you should try to test them against the output of strace/ltrace, which will be far more useful than guessing.

Misogynist
Jul 14, 2003

hubthumping

Accipiter posted:

GeForce 4 is PCIe and/or AGP.
Only one PCIe Geforce4 was ever produced, and it had an AGP->PCIe bridge on it. The majority of them were AGP and PCI.

Misogynist
Jul 14, 2003

hubthumping

Linux (with GUI, at least) and Virtual PC have never, ever played nice together in my experience.

Misogynist
Jul 14, 2003

hubthumping

fail2ban and other active response methodologies really aren't useful unless you're actually worried about insecure accounts with weak passwords on your system, in which case you're putting a band-aid on a broken leg and need to change either or both of your password and remote access policies. If someone is trying to bruteforce an otherwise-secure system it's because all the easier exploits didn't work.

Log pollution is really the only thing you need to worry about, and for SSH it's simple enough to just change the port to something arbitrary.

Dobermaniac posted:

I couldn't really find a cross-platform thread so since I'm using both ubuntu and osx I guess I'll ask it here. I am using synergy on my main desktop(ubuntu9.04) with my mac as the slave computer. Is there any program similar to synergy that will transfer the sounds also to the master computer? I'd rather use my speakers for both computer and didn't want to always plug in tons of cables. I think it'd be easier just to transfer keyboard, mouse, and sound across to another computer.
There's some program around that will do it for Windows and Mac, but the easiest way would just be to run the line out from one computer into the line in of the other. You can get the 1/8" male-male TRS cable to do this for like $1.25 from Monoprice.

Misogynist fucked around with this message at Oct 26, 2009 around 02:30

Misogynist
Jul 14, 2003

hubthumping

I just wanted to bump this thread in appreciation of awesome. Other tiling window managers have always left me wanting, but I feel like someone has created this application for me to welcome me to the future.

Misogynist
Jul 14, 2003

hubthumping

Unix filesystems are case-sensitive. That's how it is.

Assuming you're talking about your file manager with all this "actions" business, you just have to get it to associate .JPG with MIME type image/jpeg.

Misogynist
Jul 14, 2003

hubthumping

Dyna Soar posted:

Ok, after looking into this I found out that Ubuntu is pretty much the way to go. So the question is, Gnome or KDE? I read KDE is better, more customizeable and more similar to windows, but thats coming from a sworn KDE user. What are the pros of Gnome?
Try both, use the one you like better. This is a religious issue.

I used KDE for a very long time before switching to something leaner and more terminal-oriented.

Misogynist
Jul 14, 2003

hubthumping

This is pretty much the kind of thing that Exim was designed for, no?

Misogynist
Jul 14, 2003

hubthumping

Sounds like a bad disk to me. Check dmesg and your kernel logs.

Misogynist
Jul 14, 2003

hubthumping

roadhead posted:

I think all the disks are fine, they're practically brand new
I just had 3 brand new disks fail on me within about a week of each other. Disks follow the bathtub curve failure model, and are significantly more likely to fail on you in the early stages of their expected lifespan than the middle stages.

Trying to start ftpd shouldn't crash a machine. Something else is at play here.

Misogynist
Jul 14, 2003

hubthumping

Bob Morales posted:

Being that it's from 2001, is it possible that nobody tries exploiting something that old?
More like their exploit code doesn't work with the old-rear end library versions you have installed

Misogynist
Jul 14, 2003

hubthumping

Bob Morales posted:

What are some good Linux IRC channels/servers?
irc.freenode.org has pretty much everything, but you might find a few useful channels on irc.oftc.net.

Misogynist
Jul 14, 2003

hubthumping

HatfulOfHollow posted:

We have a naming scheme where any address ending in -vip is a virtual server that's going through a bigip to talk to some pool of servers. Well I stumbled over this one name in dns today and ended up going through every bigip we have looking for the virtual server configuration without any luck. Then by sheer accident I tried to ssh to the vip address and it opened a session. Then it hit me that the vip was actually a redhat cluster to provide HA for an NFS mount. So I did an ifconfig to confirm my suspicions and surprisingly the IP didn't show up. But if I look in /etc/cluster/cluster.conf I see that the name is defined. So I'm trying to figure out why it works this way. Why isn't the machine aware that it also has this other IP address once the cluster service is started yet the system has no idea that it's listening on that address. Does anyone know?
Aliases that don't have labels don't show up in ifconfig. I'm only familiar with OpenAIS/Pacemaker these days, so I can't really say how you would go about doing that in RHCS, but it's perfectly normal.

Misogynist
Jul 14, 2003

hubthumping

Hey, after performing too much performance work this week, I'm looking to start enabling process accounting on a lot of my servers. The problem is that on some servers, the pacct file can get up to around 380 MB in a day. How do you guys manage these? Is there some way to tune the accounting, or should I just try to logrotate the account files?

Misogynist
Jul 14, 2003

hubthumping

ext3/ext4 reserve 5% (configurable) of the total filesystem space for the root user.

93GB is, not coincidentally, about 5% of 2 TB.

Adbot
ADBOT LOVES YOU

Misogynist
Jul 14, 2003

hubthumping

A MIRACLE posted:

Getting flash to work for a first time linux user is kind of a bitch. Especially because Ubuntu doesn't install a lot of flash dependency libraries, that can be hard to find.
"Adobe Flash plugin" is right in the Ubuntu Software Center now

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply
«8 »