|
I deleted a user that no longer works with us from a Ubuntu server. 10 minutes later, I found a folder that apparently he had ownership of, and I can't get into it or do anything with it... and I need to get into it. code:
I tried a "sudo chown na:admin backup" But I got an error saying "chown: cannot access `backup': Input/output error" Halp guyz
|
# ? Dec 14, 2009 18:40 |
|
|
# ? Apr 27, 2024 19:23 |
|
Maybe backup isn't mounted?
|
# ? Dec 14, 2009 20:18 |
|
I have a box running Kubuntu that I want to constantly display a series of webpages, looping through a list of addresses, sort of like a powerpoint presentation on auto, but retrieving the pages each time as they will get updated etc. What's the simplest way to do this, I couldn't figure out a way to google it in a precise way.
|
# ? Dec 14, 2009 22:38 |
|
Alfajor posted:I deleted a user that no longer works with us from a Ubuntu server.
|
# ? Dec 14, 2009 22:44 |
|
NZAmoeba posted:I have a box running Kubuntu that I want to constantly display a series of webpages, looping through a list of addresses, sort of like a powerpoint presentation on auto, but retrieving the pages each time as they will get updated etc. What's the simplest way to do this, I couldn't figure out a way to google it in a precise way. This is starting to become more of a scripting question than a linux one but I'll try my luck anyway. I've got the following in a html/javascript that seems to do the job well enough: code:
|
# ? Dec 15, 2009 21:11 |
|
NZAmoeba posted:The only missing element is that I need it to scroll slowly up and down the page until it refreshes to the next one, any idea how I do that? I know nothing about javascript. Come on dude, Google for 30 seconds http://www.mediacollege.com/internet/javascript/page/scroll.html
|
# ? Dec 15, 2009 21:44 |
|
Bob Morales posted:Come on dude, Google for 30 seconds Yeah that doesn't appear to work, and I wasn't lying when I said I knew nothing about javascript, I'm applying my knowledge I grasped from my programming1 class from 7 years back which was in C++.
|
# ? Dec 15, 2009 23:59 |
|
Is there a way to disable the check on permissions of a private key file for SSH? We're trying to setup a script which ssh's into an appliance as a user account that has readonly rights to gather some data. Ideally we would like any user to be able to run this script to view the data without them all having their own user account and key on the appliance. This is ultimately complicated by the fact that due to limitations of the appliance we cannot specify keys for individual users and authenticate their passwords against LDAP at the same time. The problem we're hitting is that giving read access to the private key file to others causes ssh to reject the key. In googling around I see something about StrictModes, but it doesn't seem to take on command line execution (-o flag) so it's not helpful for us. Any ideas? edit: Guess I'll just have the key in the script and write it out to /tmp... SynVisions fucked around with this message at 20:24 on Dec 18, 2009 |
# ? Dec 18, 2009 20:11 |
|
This is a somewhat broad question, but it specifically applies to a Linux box I have, so I figured I'd ask it here. How important is it to have a strong password for your SSH. The current password is not easily guessable, but it is short. Most of the ports on the computer are open, and I primarily use it to house a database and access it through ODBC across the internet with a dynamic DNS. In other words, it's not housing a bulletin board with thousands of users so it's visibility is low, but it does have it's own domain. How real is the threat of someone stumbling across the IP and then using a computer algorithm to find the password via brute force?
|
# ? Dec 18, 2009 20:37 |
|
WildGunman posted:This is a somewhat broad question, but it specifically applies to a Linux box I have, so I figured I'd ask it here. The threat is very real. After your server has been up for a while you will find that your logs are being inundated with brute force attempts. You will definitely want to have a solid SSH password just to eliminate the brute force risk.
|
# ? Dec 18, 2009 20:40 |
|
If you have SSH open to the Internet, it's not a bad idea to change the port, either. It won't stop anyone deliberately trying to find their way into your box, but it will clear up about 99.9% of the random bruteforce attempts from your logs.
|
# ? Dec 18, 2009 21:37 |
|
SynVisions posted:The threat is very real. After your server has been up for a while you will find that your logs are being inundated with brute force attempts. You will definitely want to have a solid SSH password just to eliminate the brute force risk. QFT. This is one of those things where 5-10 years ago it wasn't as big a deal, but as networks have become saturated with scans from compromised machines (thanks, Microsoft. thanks, lovely Unix sysadmins.) it's a very big threat at this point. To answer your own question: SynVisions posted:In googling around I see something about StrictModes, but it doesn't seem to take on command line execution (-o flag) so it's not helpful for us. How much did you read? StrictModes appears to be an sshd option, not an option for the client software (ssh), so you'll need to set it in /etc/ssh/sshd_config (or similar) and reload your SSH daemon, on the server side.
|
# ? Dec 18, 2009 21:48 |
|
bitprophet posted:How much did you read? StrictModes appears to be an sshd option, not an option for the client software (ssh), so you'll need to set it in /etc/ssh/sshd_config (or similar) and reload your SSH daemon, on the server side. Ahhh interesting, so the option for whether the connecting SSH client should be checking perms on its local files is a setting on the destination server? I completely glossed over the fact that it was a server side option. Regardless it's not helpful for us because we don't have that granular level of control over the sshd_config on the appliance. Also oddly enough when I did make the change on another server and restarted the daemon it still threw an error on connection about perms of the identity file. It's not really important though at this point. I'm fine with encapsulating the keyfile in the script for this problem.
|
# ? Dec 19, 2009 01:37 |
|
on my local machine, I'm running Ubuntu Karmic, and the version of python installed is 2.6.4:code:
code:
|
# ? Dec 19, 2009 17:09 |
|
nbv4 posted:Python 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) which python and "apt-cache policy python" on both might give a hint
|
# ? Dec 19, 2009 17:16 |
|
SynVisions posted:Ahhh interesting, so the option for whether the connecting SSH client should be checking perms on its local files is a setting on the destination server? I completely glossed over the fact that it was a server side option. Hrm, I thought you were talking about the remote key file, which is what is usually implicated in the "bad permissions == not gonna allow key-based auth" problem. The local key file's permissions, AFAIK, should not matter, though I haven't tested this. Regardless, if you're using a hardware app instead of a full server, then yea, your options are pretty limited
|
# ? Dec 19, 2009 17:32 |
|
I want to mount a device twice (once as normal once as read only). What is the best way to do this? I was thinking making a symlink to /dev/md0 (currently everything is using UDID) or could I simply mount by device and once by UDID?
|
# ? Dec 19, 2009 19:45 |
BiohazrD posted:I want to mount a device twice (once as normal once as read only). What is the best way to do this? I was thinking making a symlink to /dev/md0 (currently everything is using UDID) or could I simply mount by device and once by UDID? mount --bind might be able to help you here. I'm not sure if you can pass -o ro the second time, but it might work. Example: sudo mount /dev/mapper/truecrypt1 /mnt/crypt0 -o umask=0 sudo mount --bind /mnt/crypt0 /home/ftp/friends -o ro EDIT: -o ro, not readonly. Jo fucked around with this message at 20:05 on Dec 19, 2009 |
|
# ? Dec 19, 2009 19:55 |
|
http://lwn.net/Articles/281157/ It is supposed to work, but it fails silently and the directory that is supposed to be read only isn't. code:
30 TO 50 FERAL HOG fucked around with this message at 20:25 on Dec 19, 2009 |
# ? Dec 19, 2009 20:20 |
--- I'm having problems mounting an mp3 player as a block device. gPhoto2 keeps grabbing it and doing its multimedia LET ME HELP YOU bullshit. I just want to mount a mass storage device. dmesg | tail posted:1785204.988030] usb 2-4: new high speed USB device using ehci_hcd and address 21 lsusb posted:Bus 002 Device 022: ID 0781:7432 SanDisk Corp. Sansa Clip (mtp) There doesn't appear to be an entry in /dev/sd*.
|
|
# ? Dec 19, 2009 20:30 |
|
code:
|
# ? Dec 19, 2009 20:37 |
BiohazrD posted:
Ah, I should have mentioned that no /dev/scsi* devices appear, either.
|
|
# ? Dec 19, 2009 20:38 |
|
What's the output of "fdisk -l"
|
# ? Dec 19, 2009 20:40 |
Hmm. Interesting. It's not showing up in there, either.sudo fdisk -l posted:jo@Euclid:~$ fdisk -l EDIT: I disabled automount and the gPhoto2 bullshit, the unplugged and replugged. No go.
|
|
# ? Dec 19, 2009 20:43 |
|
BiohazrD posted:http://lwn.net/Articles/281157/ code:
Now, how do I make this happen automatically? I can use bind as a mount type in fstab, but I can't execute the remount. 30 TO 50 FERAL HOG fucked around with this message at 20:53 on Dec 19, 2009 |
# ? Dec 19, 2009 20:47 |
|
Repost dmesg after disabling that stuff and replugging the device.
|
# ? Dec 19, 2009 20:49 |
Oh good you got your stuff working. --- New dmesg data: posted:[1785950.668026] usb 2-4: new high speed USB device using ehci_hcd and address 24 Hmm. That waiting for device to settle message is a bit curious. EDIT: Found a potential solution on a Linux forum. Will report on failure. Solution: Edit /usr/share/hal/fdi/preprobe/10osvendor/20-libgphoto2.fdi and hose every reference to SanDisk. Unplug, replug. EDIT: \/\/\/ Jo fucked around with this message at 21:03 on Dec 19, 2009 |
|
# ? Dec 19, 2009 20:52 |
|
It seems to have something to do with your Sansa player. There's actually quite a bit of info about it from the quick Googling I did. https://bugs.launchpad.net/ubuntu/+source/libgphoto2/+bug/355998 What distro are you using? There are two fixes that you could try, but one is Ubuntu only.
|
# ? Dec 19, 2009 20:58 |
|
If it is anything like the Sansa Fuse, you have to go into the Settings and change the USB mode from Auto (or MTP) to MSC (Mass Storage Device mode). Auto mode tricks you into thinking it is an OS problem because it waits for an MTP transfer and if none comes, it switches to MSC. And beware, if you have any files transfered in MTP mode, they won't show up on the MSC FAT filesystem and the file system size will be smaller than expected. Edit: http://forums.sandisk.com/sansa/board/message?board.id=clip&thread.id=570 waffle iron fucked around with this message at 04:17 on Dec 20, 2009 |
# ? Dec 20, 2009 04:08 |
|
I build myself a custom 2.6.32.2 kernel for my notebook in linux mint 8 and have the following problem: whenever I try to wake the notebook it just freezes and I have to kill it. Logs tell me I get a "low memory corruption error". Hibernate works fine. Any ideas?
|
# ? Dec 20, 2009 14:53 |
|
I'm wanting to reinstall my system from scratch, and was wondering if I should go x64 or stick with x32? I'd be using Ubuntu. I have not made a clean install since like 7.04 or longer. Is there much advantage of one over the other? Are there still tons of flash issues in x64? I use this machine for mainly surfing and video. edit: I'm currently on a Live x64 disk. Everything appears to be working hardware wise.
|
# ? Dec 20, 2009 17:50 |
|
deong posted:I'm wanting to reinstall my system from scratch, and was wondering if I should go x64 or stick with x32? I'd be using Ubuntu. I have not made a clean install since like 7.04 or longer. Is there much advantage of one over the other? Are there still tons of flash issues in x64? I use this machine for mainly surfing and video. If you're not planning on playing games or something and you just do the typical Internet/Music/Movies/Word Processing thing than I doubt you have much to worry about. Flash 64 bit is available from Adobe Labs and works very well for most people. Edit: I notice subtle differences using 64-bit. Faster decompression of compressed files. More responsive media players. Much faster video compression. Etc. Absinthe fucked around with this message at 21:59 on Dec 20, 2009 |
# ? Dec 20, 2009 21:53 |
|
There's an ubuntu package for flash, which makes it mind numbingly simple. I think it's flash-nonefree or something. All it does is wget the Adobe labs thing, but it will get a new one automatically when/if a new version is released.
|
# ? Dec 20, 2009 21:55 |
|
Awesome. I've got an xbox for games heh. 64bit, here I come!
|
# ? Dec 20, 2009 23:37 |
|
Which should go first, rm or find, and why?code:
code:
|
# ? Dec 23, 2009 19:18 |
|
If you want to execute a big sql file into postgres, you use this command:code:
code:
|
# ? Dec 24, 2009 00:52 |
|
nbv4 posted:If you want to execute a big sql file into postgres, you use this command: By default bunzip2 is just going to decompress the file and return 0 on success. This should probably work for you instead: code:
|
# ? Dec 24, 2009 01:01 |
|
SynVisions posted:By default bunzip2 is just going to decompress the file and return 0 on success. This should probably work for you instead: sweet that worked, thanks
|
# ? Dec 24, 2009 01:14 |
|
I use zcat. It's a script that invokes any of the bzip or gzip programs.
|
# ? Dec 24, 2009 05:26 |
|
|
# ? Apr 27, 2024 19:23 |
|
epswing posted:Which should go first, rm or find, and why? I think usually it's considered most correct to use xargs, but it may run into to the same problem where 'rm' tries to remove folders that were already removed. code:
|
# ? Dec 24, 2009 22:20 |