Posts

Showing posts from February, 2012

How to access NTFS partition in Rhel/Centos 5/6

$ cd Download $ wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm # rpm -ivh epel-release-6-5.noarch.rpm You must be logged in as Root for the below command to work : # yum install ntfs-3g Checking the Name of an NTFS Partition Entering the below commands would help you determine the name of an NTFS partition : # fdisk -l /dev/sda # fdisk -l /dev/sdb Steps to Mount /dev/sda1 NTFS Partition at /mnt/ntfs It is essential to load the fuse driver. The below command should help you do that : # modprobe fuse Now using the below command you must build a mount point: # mkdir /mnt/ntfs The following command would help you with mounting the ntfs partition : # mount -t ntfs-3g /dev/sda1 /mnt/ntfs Command for Unmounting the NTFS Partition # umount /mnt/ntfs

How to configure ACL in Linux

Image
ACLs can be configured:  1.Per user 2. Per group 3.Via the effective rights mask 4.For users not in the user group for the file Enable ACL support on the partition. Edit /etc/fstab file and change the default parameter to rw,acl If we want to enable acl for /mnt Now, you will need to remount the /mnt partition with the "acl" option. The easiest way to do this is with the "remount" option, since it will work even while the partition is in use: [root@vishal /]# mount -v -o remount /mnt/ /dev/sda5 on /mnt type ext3 (rw,acl) Create a user and group:-  [root@vishal /]# useradd vishal [root@vishal /]# groupadd linux [root@vishal /]# usermod -a -G linux vishal Now, we can actually start using ACLs. The basic commands that we are interested in are: getfacl setfacl [root@vishal /]#  setfacl -m u:vishal:rw- /mnt/ [root@vishal /]#  getfacl /mnt/ getfacl: Removing leading '/' from absolute path names # file: mnt # owner: root # gro

Configure SSL Apache on Ubuntu...

Image
Generate a Self-Signed Certificate:-   $a2enmod ssl   $mkdir /etc/apache2/ssl   $openssl req -new -x509 -days 365 -nodes -out /etc/apache2/ssl/ssl.pem -keyout /etc/apache2/ssl/ssl.key You will be asked for several configuration values. Enter values appropriate for your organization and server, as shown here. Generating a 1024 bit RSA private key .++++++ ..............................++++++ writing new private key to '/etc/apache2/ssl/ssl.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:IN State or Province Name (full name) [Some-State]:Gujarat Locality Name (eg, city) []:Ahmedabad Organization Name (eg, com

Apache Tomcat in ubuntu

Image
Ddownload Tomcat  http://tomcat.apache.org / Unzip it with tar -zxvf  Tomcatxxx.tar tar -zxvf apache-tomcat-7.0.25.tar.gz No make or configuration required, just change to tomcat bin folder to start or stop Tomcat For Staring Tomcat: sudo /opt/tomcat7/bin/startup.sh To Shutdown Tomcat: sudo /opt/tomcat7/bin/shutdown.sh Done .... !!!!! Thanks, Vishal