Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

configuring network

Status
Not open for further replies.

cspm2003

Programmer
Nov 24, 2004
78
DE
Hi,

im pretty new to linux, and just installed Suse9.2 on my laptop and want to configure the network (using the console) and have a few questions:

1st.: I was able to set the ip address using ifconfig as root, but I could not use ifconfig on my regual user account although my standard user got root permissions. y is taht?

2nd.: How do I configure the default gateway and DNS servers?
I was reading online to configure the default gateway, I should use the "route add" command, but cant really figure out the correct syntax.

thx alot in advance!
 
1. That is by design. As a security feature, only the root user can make certain configuration changes. Among these are modifications to the IP configuration and starting servers that listen on ports below 1024.

2. When I need to change the default gateway, I edit the file /etc/sysconfig/network. But I don't use SuSE, I use Fedora. I think SuSE's file is in the same place.

DNS servers are set up in the file /etc/resolv.conf. The quick answer is to add lines which read like "nameserver ip.address.of.dns". For more information, go to a command prompt and perform "man resolv.conf".


Want the best answers? Ask the best questions!

TANSTAAFL!!
 
which file should I edit in the network directory?

what is if I have to dns servers? would I add:

nameserver ip.address.of.dns
nameserver ip.address.of.dns

?
 
I got two more question for now: :)

I wana delete all folders named "mp3" in the home folder of a user. I tryed:
find -name "mp3" -exec rm -R cvs

but I get an error message:

find: missing argument to '-exec'

what am I doing wrong?


also, is there a way to edit posted posts?

thx
 
a) now way to edit posts.
b) new topics schould be new topics
c)
Code:
find /home/theUser -name "*.mp3" -exec rm {} \;
I don't like to look what 'cvs' means.
c=
v=verbose
s=
?
-R recursive? that's needless, because find is doing that job, and the name of the directory will probably not match 'mp3'.

You need allways the path to start the search, and the name you searched for is 'mp3', not 'zappa.mp3'.

In the -exec command the '{}' is a placeholder for the file found. The '\;' marks the end of the -exec-part, which is usefull to distinguish:
Code:
find /home/theUser -name "*.mp3" -exec ls {} \; | wc
# from
find /home/theUser -name "*.mp3" -exec ls {} | wc \;


seeking a job as java-programmer in Berlin:
 
thx for the reply, I was thinking about two different things with the cvs thing, that was something else.

I tryed some more myself and came up with this command:

find -name "mp3" -exec rm -R {} \;

I though I had to use the -R so it removes the contents of that folder?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top