Jump to content
Compatible Support Forums

twinsonas

Members
  • Content count

    5
  • Joined

  • Last visited

    Never

Community Reputation

0 Neutral

About twinsonas

  • Rank
    stranger
  1. twinsonas

    how to chnage default ports on linux system

    Quote: Hi! SSH listen on port 22,but i want to change it to port 2222. does any forum member had done this earlier. pls. help me out. Rohit yes. change the ssh configuration file to set new port then also edit /etc/services file in your linux box to enlist your ssh service to map to port 2222. You can simply copy the format for both tcp and udp lines.
  2. twinsonas

    Who can teach me about ipchains?

    Quote: I will be delete my redhat8.0 if I can't make my firewall? If I want input and output from 8000,I should do what? Can you tell me these are right or wrong? "vi /ect/sysconfig/ipchains" then "-A input -s 0/0 8000 -d 0/0 -p udp -j ACCEPT" but I don't know how to save?I don't know. then "etc/rc.d/init.d/ipchains restart" If one of you know these are right or wrong or how to make it,can you put a Email to chun19831114@yahoo.com.cn you do this: ipchains -A input -s 0/0 -p all --dport 8000 -j ACCEPT ipchains -A output -s {ip of your host} -p all --sport 8000 -j ACCEPT what this means: -in the input chain -s = the source is the outside host and destination port is your localhosts port 8000 -in the output chain -s = the source is your localhost particulary your localhost's port 8000 you save your ipchains rules by doing: ipchains-save you can restore your saved ipchains rules (.txt) by doing: ipchains-restore /the/file
  3. twinsonas

    samba write permission problem

    Quote: l have set up samaba (for the first time) on mandrake 9 (also first time) and can see the share from my XP box and navigate around it and open files but cannot create new ones or modify existing files. l thought i followed the set up informtion i had, and can't seem to find a problem. any ideas? l can show my smb.conf if you would like... cheers. shaun.. look into your smb.conf file and look for directives of your samba share. make sure you have ANY of the following: read only = No writable = Yes
  4. twinsonas

    SAMBA

    Quote: Thanks for your reply. I still can't get it working so I posted my smb.conf file. I now think the problem maybe somewhere else. Let me explain the setup I have a little better. I have my RH8 box with 2 interfaces. my external internet access which is DHCP. The second Interface is 10.0.0.1 and connects to a hub which then goes to the Windows Pro box with a IP of 10.0.0.2. Both boxes are pinging and working fine. I set up RH as a router. Like I said I can see the Samba server when I browse My Network Places but get that error. I did add samba users, the services are of course started, looks like the version is 2.2.5. I have been over the smb.conf file and other docs and I have no clue. Please help Thanks again. # Samba config file created using SWAT # from UNKNOWN (127.0.0.1) # Date: 2003/03/02 13:43:56 # Global parameters [global] workgroup = DANVAN netbios name = RUSTHALL server string = Samba Server interfaces = eth* encrypt passwords = Yes obey pam restrictions = Yes pam password change = Yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully* unix password sync = Yes log file = /var/log/samba/%m.log max log size = 0 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 dns proxy = No wins support = Yes printing = lprng [homes] comment = Home Directories path = %u valid users = %s read only = No create mask = 0664 directory mask = 0775 browseable = No [printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No why don't you just hand edit your smb.conf file. by the way, is there any particular directory you want to share? a simple file sharing: first, comment out encrypt passwords directive then create your share directory like this: [myshare] comment = my samba share path = /the_path/to_your_shared/_directory writable = Yes create mask = 0664 directory mask = 0775 browseable = Yes public = Yes then in windows explorer access the \\computer name\myshare
  5. twinsonas

    restarting network service

    Quote: don't know if that subject is appropriate for what i am asking but i'm not THAT linux fluent. Anyways i was wondering, i have my computer set to obtain an ip automatically at boot, didn't set any static thing. So for example say i boot and i don't have the ehternet plugged in, eventually that boot process times out and it continues booting and i don't get an ip from my router.. so i was wondering, once it boots and then i plug in the ethernet, is there a way to get the ip process to restart and get an ip? you can also use the following commands: ifconfig 1.2.3.4 eth0 up then depending on what flavor of linux ur using, restart the network: /etc/init.d/network start stop restart (whatever u want to do) /sbin/init.d/network start stop restart
×