General :: Modify The /etc/host File - Change Directory Fails?

Feb 1, 2010

I am in the process of setting up an Asterisk server with Broadvoice services. I am having issues with making outbound calls and Broadvoice suggests I modify the /etc/hosts file in order to add their proxy server IP address and name. I login to my server as root and get the following command line header

[root@root tmp]#

I entered cd thinking this is what I need to change directory but fails. What is the command I need to enter in order to get to the /etc/host file so I can change it? How do I confirm an /etc/host file even exists?

View 2 Replies


ADVERTISEMENT

General :: Modify .bashrc File To Change The HISTSIZE?

Apr 27, 2011

If I want to modify my .bashrc file to change the HISTSIZE would the following command be for example; HISTSIZE=200? And if I want to change the DEBUG_LEVEL to 8 would the following command be; DEBUG_LEVEL=8?

View 3 Replies View Related

General :: How To Change Host Name By Creating File

Mar 17, 2010

In order to change host name I usually create a file with this:
nano /etc/hostname (after going SU)
And in that I type the new hostname.

Also I did this too...
nano /etc/hosts
127.0.0.1 localhost <hostname>
nothing happens. OS is PCLinux

View 5 Replies View Related

General :: Mkdir Fails - Even With -p - No Such File Or Directory

May 30, 2010

The setup ( although dont trust anything I say ):

I'm working on an embedded system device using a NFS mounted rootfs ( as shared by my host ) , but I store large video content directly on the device's hdd in /data.

Device's hdd partition /dev/sda3 is ext3 fs mounted at /tmp/mnt/diska3 (rw), then I have a script create dirs like /tmp/mnt/diska3/data and /tmp/mnt/diska3/data/incoming, then symlink :

ln -s /tmp/mnt/diska3/data /data so that the /data appears like any other directory.

I can see /tmp/mnt/diska3/data/incoming. I did chmod -R a+w tmp to rule out permissions.

Running a subsequent script calls mkdir: mkdir -p /data/incoming/gui

BUT fails: mkdir: cannot create directory '/data/': No such file or directory

View 5 Replies View Related

Fedora Servers :: Can't Access Or Modify File Unless Directory Mode Is 777 And Files Are 666

Nov 8, 2010

I have a multi user system for my roommates and myself that has separate folders for each of us. I've got user authentication working with samba, but unless I set every file and folder readable/writeable by all users, I can't browse it or edit the files.This isn't ideal as the shares are open to other users access, so I'm hoping there's a way to keep folders at 750 and files at 660 while allowing samba users to browse, delete and edit.Also, the samba share is actually a mounted NFS share from another server. Both the NFS server and the Samba server have the same users/uid's. When a file is created from a Windows host via the Samba client, the NFS server's permissions do show that the correct user owns the files, but since the files aren't mode 666 but 640 I can't edit or delete the file.

View 4 Replies View Related

Red Hat / Fedora :: Cannot Modify Grub Menu File - Need To Change Boot Order

Mar 3, 2009

I recently installed a 64-bit version of centOS 5 alongside a 32-bit version, which I use. Turns out the 64-bit version absolutely will not boot and I'm stuck with it as my default boot option. Since the grub being used resides on the 64-bit half, I cant edit the menu file but I know theres a way to do this without it, through grub itself. I have about 29 render nodes now with this problem, and whenever they need to be rebooted I have to hook a monitor up to each one and hold its hand through the boot process. How to change the grub menu through grub itself, basically just change the default boot option and then have it stay that way?

View 5 Replies View Related

General :: How To Change Same File Names Directory Wise

Apr 9, 2010

I have a problem with file names changes. I have a hundred of file with same names and different subdirectories. I want to change that file names by their subdirectery names.

Currently is:
file name------------------------subdirectory name
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000049.h23v03.005.dir
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000065.h23v03.005.dir
1_km_16_days_EVI_s2_01200_01200.img --> MOD13A2.A2000081.h23v03.005.dir
...

I want to
MOD13A2.A2000049.h23v03.005.img
MOD13A2.A2000065.h23v03.005.img
MOD13A2.A2000081.h23v03.005.img

View 3 Replies View Related

Red Hat / Fedora :: When Log In, This File /etc/host, Under The Etc Directory Get Appended The Username?

Feb 19, 2010

I am having a problem with two linux boxes I have. They are running Centos 5.3 and Centos 5.4. The problem is that when I log in, this file /etc/host, under the etc directory get appended the username I am logging in as, the IP address I am logging in from, and worse, the password in clear text.This is the format it uses:username@IP (password in clear text) [Tue Jan 12 2010 13:00:26 -0500]Is it possible for someone to tell me what is this about, and how to stop it?

View 5 Replies View Related

General :: Modify A File That Contains \ Using Sed Or Awk ?

May 13, 2010

I need to modify a file that contains \tsus.fbfs.comappsdataStormLossProduction and replace the \tsus.fbfs.comappsdataStormLossProduction line with rm -f /mnt/nfsvol/PC/SLR/

I have tried:

But it provides an error on the second . I need to change this in place and not redirect to another file.

Is this possible? I have used sed and awk before but not extensively.

View 7 Replies View Related

General :: Modify Another File And Not Actually Hold Information?

Feb 16, 2011

Why is the info in the (BASH_Profile) file different than (echo $Path). Is the Profile file just there to modify another file and not actually hold information?

View 1 Replies View Related

Ubuntu :: Rsync Fails When Using Modify-window

Jul 30, 2011

I am trying to sync or copy some files from my local home directory to my external passport drive. My passport drive has been acting weird , I was having a hard time mounting it, but finally I did it. It was mounted using FAT (for compatibility reasons)Now I am trying to copy the files but in a smart way, using this script with --modify-window switch.Is that a bug? Is the --modify-window switch missing on Ubuntu or maybe different?

View 2 Replies View Related

General :: To Create A Link For A Directory Across Host?

Mar 11, 2010

i am a oracle DBAI want to crete a link for a directory in production serverto remote host.

View 6 Replies View Related

General :: Grasp The Proper Way To Modify The Sudoers File

Jun 3, 2010

Relatively new to Linux, but I'm trying to grasp the proper way to modify the sudoers file. As an example, what would I have to modify in /etc/sudoers to allow a user (say 'user1' for the example) to be able to add/remove software through yum? I'm aware of the fact that I need to use visudo and how to use the vi editor. I've Googled this topic and while I've found a number of pages on the topic, I never see many examples.

View 5 Replies View Related

General :: How To Modify Line Of File Using Shell Script?

Apr 12, 2010

I have a file like below
n
p
1
1
50
w

I need to modify the first occurence of 1 byt some other integer.How do i do it using shell script?Can anybode help me out with that?

View 9 Replies View Related

General :: Modify The Only One Pattern Among Two Patterns In A Text File?

Nov 22, 2010

I want to replace a pattern with other pattern in a textfile. But there are two same patterns,but I need two change only the second occurence. EG:

Text file is

aaaa=1
bbbb=2
cccc=3
dddd=4

[code]....

Now I want to change aaaa=x into some other entry.

View 3 Replies View Related

General :: Accessing A Guest OS's Directory From The Host OS In VirtualBox?

Jun 5, 2010

With VirtualBox you can share a directory on the host machine with the guest machine. Can you share a directory on the guest machine with the host machine? In my setup the host is Windows 7 and the guest is Ubuntu. Can I have a directory on the Ubuntu file system accesible from Windows?

View 1 Replies View Related

General :: Modify A File Like /etc/gdm/custom.conf From The Shell Or A Script?

Jun 22, 2010

I want to modify a file like /etc/gdm/custom.conf from the shell or a script.

# GDM configuration storage
[xdmcp]
[debug]
[daemon]
AutomaticLoginEnable=true;
AutomaticLogin=username;

But the idea is that I can add a line to a section and it check if the section is defined, (add the definition if not), the property is defined, let it undefine (erase the line), (and delete the section header if there is no property defined), etc...

I didn't find anything except gconftool-2 but it do not explain how to modify other files. (there is a shema file there).

there isn't a program/script to achieve this, but can easyly be made for every config file, If someone do something like that, with a little database of which markup use each file, it could become really popular.

View 3 Replies View Related

Ubuntu :: Unable To Change File To Directory?

May 10, 2011

I have a usb that got corrupted whilst attached to a Vista computer.Now what was once a directory is now a file!It now reads as -rwxr -xr -x instead of drwxr -xr -x how do I change this back to a directory?

View 2 Replies View Related

Software :: Script For Managing System Servers Fails / Modify It?

Apr 5, 2011

I would like to create a simple bash script, that will enable me to connect to a list of defined linux servers and execute a command there.

I looks like this code...

I am running the script under a regular user not root.

How shall I modify the script to go through all the servers?

View 3 Replies View Related

General :: How To Change The Host ID On Ubuntu 9.10

Mar 30, 2010

On an Ubuntu 9.10 machine, how do I change the host ID to a different value?

View 1 Replies View Related

Fedora :: BASH :: Change File Stat In Sub Directory?

Oct 23, 2010

So I have created a Bash script with the intent of the program to change the names of the files in a folder's subdirectory.The code recognises the individual subdirectories, then is able to enter into one and list the files individually, but when it tries to change their information it says;' cannot stat ' : ' No such file or directory 'As if it is looking in the directory that contains the Bash script, not its subdirectory.It is essentially saying, I see a file here called FILE but sorry, I can't change FILE because FILE doesn't exist. kweh?Is this something outside the capabilities of Bash? Am I asking too much of it? Can Bash only manipulate files that are in the same folder as the script?

Code:
#!/bin/bash
echo enter directory

[code]....

View 6 Replies View Related

Programming :: PHP - List Directory - Choose A File - Change Its Name

Mar 16, 2011

Im looking to use PHP to list a directory. When I click on a filename, I'd like it to automatically remove the first 16 characters off of the filename and save it to the filesystem.

View 6 Replies View Related

Installation :: Change The Boot Partition - Error: Bad File Or Directory Type?

Jan 31, 2010

I have presently a (working) boot dedicated partition, where grub stuff resides, but I want to change it to a common "/boot" folder in the root partition (in a different hdd). For some reason I can't do it. The first thing I did was to copy all the things that are in the boot partition to a boot folder on the root partition. After that, I tried: grub-install /dev/hdc1 (which is odd but it's where the root partition actually is)

When I did it from the linux I have installed on my hdd, it actually did something, I don't remember all the output (except that there was something about it not being able to access hda, which is oddly the dvdrom), but it didn't work. From a live CD, the same command (grub-install /dev/hdc1) is answered with: Could not find device for /boot: Not found or not a block device. From grub's own prompt, the things are more or less the same. First of all, it does not find stage1, even though I did copy the content from the boot partition to a boot folder in the root partition.

I tried to proceed, anyway, with root (hd1,0) and setup (hd1,0) (which is /dev/hdc1, according with the "geometry" info given by grub). "Root" is accepted, but "setup" is answered with: Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no Error 2: Bad file or directory type But the files are there. I can't "cat" the menu.lst from grub though, unlike with the actual working boot partition. The same error message. From the terminal, however, it's all there. I tried with /dev/hdc1 both mounted and unmounted, the same message. So, basically I have two questions, I guess:

1 - can I really do this sort of thing running a linux installed on a hdd, rather than a live cd, or is the live cd preferable for some reason?

2 - what am I missing?

(A note that may worth making is that I'm using the soon-to-be deprecated grub version, 0.9 or something, not grub2. I think it shouldn't be a problem since I've installed the system with the old version to begin with, but that may be irrelevant, I don't really know)

View 6 Replies View Related

General :: Chmod (Directory On Drive) Fails Without Error

Aug 2, 2010

I have an external USB hard drive (sdb1) mounted at /media/Iomega HDD. When I try to do a chmod to a directory on this drive, chmod doesn't give me an error, but it doesn't change the privs - even when I'm root. Why is this?

Code:
root@d-desktop:/media/Iomega HDD# ls -lart
total 2176732
drwx------ 1 dan dan 456 2010-08-01 16:24 Unison
root@d-desktop:/media/Iomega HDD# chmod -v a+rwx Unison
mode of 'Unison' changed to 0777 (rwxrwxrwx)
root@d-desktop:/media/Iomega HDD# ls -larth
total 2.1G
drwx------ 1 dan dan 456 2010-08-01 16:24 Unison
root@d-desktop:/media/Iomega HDD# /usr/lib/klibc/bin/fstype /dev/sdb1
FSTYPE=unknown
FSSIZE=0
root@d-desktop:/media/Iomega HDD

View 14 Replies View Related

Server :: Apache Does Not Have Permission To Modify Files In User Directory - SVN

Mar 30, 2010

I recently started using SVN with Apache for my web development, although I find it really annoying that I have to issue two SVN commands (one local, one remote) to update my web site. I have been looking into SVN post-commit hooks to solve this problem. The only problem is that apache does not have permission to modify files in my user directory... So here is how everything is setup. I am running Slackware 13 full install. There have been no installations overriding any of the default installs.

[Code]....

View 1 Replies View Related

General :: Useradd Creates User But Fails To Make Home Directory

Oct 7, 2010

when I try to add a user it fails to make the corresponding home directory. I can still su to the user, set the password, and everything else. the output is as follows:

$ useradd username
useradd: cannot create home directory /home/username

I read that this could be a result of there not being enough space but if I do df -h, i see that only 88% of the memory is being used.

View 14 Replies View Related

Fedora :: Change Or Modify Logon Theme Or Looks?

Feb 25, 2011

I download some gdm logon themes but I can not find the way to change it. the site is gnome-look.org

View 1 Replies View Related

Ubuntu :: 10.04 - How To Change / Modify Preferred Font

Apr 30, 2010

I want to use Sans for English and another font for Chinese. I was thinking maybe I can modify
/etc/fonts/conf.d/69-language-selector-zh-cn.conf
/etc/fonts/conf.d/99-language-selector-zh.conf
to change the order of preferred font. But I couldn't find the files and I not sure if that will achieve my purpose at all...

View 1 Replies View Related

Ubuntu :: Change User Of Apache2 - Need To Modify?

Mar 4, 2011

I am having dificulting with www-data as the user for apache2. I would like to change the user to my desktop user so that I can limit access to one unknown users. I am also having problems with my wordpress website and the permalink settings. which file I should look at modifing and what I need to modify?

View 9 Replies View Related

OpenSUSE Network :: Add Few Lines To Php.ini File And Modify Suhosin File?

Dec 29, 2009

Is installing "php5-suhosin" from yast and restarting apache enough to make suhosin work out of the box? Or do I need to add few lines to php.ini file and modify suhosin file?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved