Results 1 to 4 of 4
Basically at school I am doing a Linux project and I need a little help with some of this stuff.
Establish networked connections between a Linux Server and various types ...
- 06-12-2011 #1Just Joined!
- Join Date
- Jun 2011
- Posts
- 1
Multiple tasks for a Linux project I need advice on
Basically at school I am doing a Linux project and I need a little help with some of this stuff.
Establish networked connections between a Linux Server and various types of Workstations, using all and any of the following:
- Remote logins (telnet, rlogin, rsh, ssh), from Linux and/or Windows, noting correct syntax and security issues.
I want to set use SSH for this, the biggest problem I am having with SSH is connecting to my domain with a putty client.
- Peer-to-peer, sharing folders using NFS (Network File System) for Linux systems. Note security issues.
When I make a ntfs file system "mktfs" is the command I think, but how should I know which device to partition?
- Providing file sharing for Windows-based clients, using SAMBA (peer-to-peer connections for file sharing only);
I think I already got a SAMBA set up, (I can see a "Samba server" under My Computer when I log in to my XP Client)
- Provide net-logons for Windows-based clients, using SAMBA, and allow for the acces of home folders, roaming profiles and a public directory. Be sure to clearly distinguish between the following:
I think this means I need to set user to they can only access there home files "Jailing a user?" then make a roaming profile and public directory.
- Set up a Samba Server to act as a Domain Controller.
- Configure an ftp server, which will chroot users to their home directory. Do not enable anonymous ftp logins.
I think I have set up a samba as a DC
But I am not sure how to configure the FTP server though.
Thanks for any help in advance.
- 06-13-2011 #2
tall order..
Magical-Trever
This is a very comprehensive list of learning skills you are requesting.
Since there doesn't seem to be a question here, at this time there is no answer.
I would suggest that everyone here is willing to help you with your questions, but you need to do some things, such as pick one item on your list such as 'remote login'
1. Perform a Google search for a tutorial on the topic.
2. Execute the tutorial steps on your environment .
3. If you do not get the expected results, then search this forum and Google for the error message you receive or your specific incorrect result, and if you have no success in finding your answer...
4. Open a new thread and state your operating environment, machines, operating systems,e.t.c and what searches you performed, then the procedure you followed, your expected result and then finally the result you received.
You will find folks here that will have followed the same path as you and will be willing to part with the help that you need.
Once this item has been mastered, then go on to the next item on your list.
I'm sure folks here can suggest some entry level books or web pages that will get you started.
Update: your are advised also to read the sticky for all newbies,, many of the things I mentioned are covered here.Last edited by jwf; 06-13-2011 at 01:09 AM. Reason: update
Ubuntu 11.04 on IBM ThinkCentre
Fedora, VMware Player (windows xp,Knoppix 6.5) on Lenovo Laptop
GRUB Fedora / Windows 7, VMware Player (Windows 2008 server) on NCIX quad core PC.
- 06-13-2011 #3Just Joined!
- Join Date
- Jun 2011
- Location
- 16 Ginger Trail Apt # 16
- Posts
- 2
Multiple tasks for a Linux project I need advice on
hi,
to help you with this project you didn'tprecise what distribution of linux you are using but its ok. first thing first.
1.for the SSH you need to check the server configuration.
A-check whether the required openssh packages are install
#rpm -qa | grep openssh
openssh-4.3p2-24.el5
openssh-server-4.3p2-24.el5
openssh-askpass-4.3p2-24.el5
B.make sshd autostart at each system reboot
#chkconfig sshd on
C.configure those file /etc/hosts.allow /etc/hosts.deny for sshd access control.
D.Allow ssh traffic on port 22 to pass through the firewall or simply stop and disable the firewall
E. start or restart the sshd deamon
#service sshd start
then run putty on a windows machine it should be work.
2.for the NFS do you mean mkfs instead of mktfs...
its ok don't panic
A.if SELINUX is enforced you need to disable its protection for NFS service to ensure smouth functionality.
#setsebool -P nfs_export_all_ro=1 nfs_export_all_rw=1 nfsd_disable_trans=1 use_nfs_home_dirs=1
and use this command to verify
#getsebool nfs_export_all_ro nfs_export_all_rw nfsd_disable_trans use_nfs_home_dirs
B.make sure you have those packages
#rpm -qa |egrep 'portmap|nfs'
portmap-4.0--65.2.2.1
nfs-utils-1.0.9-33.el5
system-config-nfs-1.3.23-1.el5
C. Ensure NFS support is included in the kernel
#lsmod |grep nfs
nfsd
exportfs
lockd
nfs_acl
auth_rpcgss
sunrpc
D.edit the /etc/exports this is where you are going to put the share you want if the file does not exist create it for example.
#vi /etc/exports
/directorytoshare client(options)
E.edit /etc/sysconfig/nfs file and define static ports for nfs deamons othrwis the deamons will use random static porst which might become an issue with the firewall if the firewall is going to be off permanently skip this and the next tree step.
#vi /etc/sysconfig/nfs
F.edit /etc/services and define the ports in it ensure the port not already in use.
#vi /etc/services
G.configure /etc/hosts.allow and /etc/hosts.deny for portmap and rpc.mountd accesscontrol
H.Allow NFS traffic on port 111(portmapper) 6001,6002, 6003 and 6004 to pass through the firewall
I. make NFS process autostart
#chkconfig portmap on
#chkconfig nfslock on
#chkconfig nfs on
K.start or restart the portmap and check the status
#service portmap on
#service portmap status
L.start nfs file locking
#service nfslock on
#service nfslock status
#exportfs -avr
On the client side execute those command
#showmount -e (for available exported resource)
#exportfs
#chkconfig portmap on
#chkconfig nfslock on
#service portmap start
#service nfslock start
M.edit /ect/fstab and add the ressource to ensure the automatic mouted at each reboot for example
#vi /etc/fstab
server:/directoryshare
N.create mount point with the mkdir command if they do not exist
O.execute the mount command with -at nfs" to mount all remote ressource
#mount -at nfs
i don't think in linux that have a mktfs command.
hope this help reply if anything let me know good luck
- 06-13-2011 #4Just Joined!
- Join Date
- Jan 2010
- Posts
- 27
If you really mean ntfs (not nfs), you should use mkfs -t ntfs (if you have mkfs.ntfs installed -- I think it comes from NTFS-3G package).
I would search for the device using commands:but how should I know which device to partition?
lsscsi or
sudo lshw -c disk, or
sudo fdisk -l, or even
sudo parted --list
The last two will list disk's partitions in addition.
But to find a partition I'd use namely fdisk:
sudo fdisk -l /dev/DISKDEVICENAME
Would you want to manage partitions from console, just omit the -l option here:)
There is universal GUI tool also: gparted.


Reply With Quote
