vmlinux

2015-06-04 Thread Mahmood N
Hi,Where can I obtain vmlinux (not vmlinuz) image for my sl-6.3?  Regards,
Mahmood

oprofile-gui without dependency

2015-06-04 Thread Mahmood N
Hi,I have manually installed oprofiel-1.0 from source. Now, when I want to 
install oprofile-gui via yum, it wants to install oprofile-0.9 as a dependent 
package. Is there anyway to just install oprofile-gui? Regards,
Mahmood

Re: External HDD is accessable for one user only

2015-01-17 Thread Mahmood N




 On Saturday, January 17, 2015 9:56 PM, Hans Kristian Rosbach 
 wrote:
   
>And the umask of  effectively means 
>everything gets chmodded to 777, so all permissions to everyone. 
O yes that was a nice answer
>An umask of 0007 might possibly be more what you want to do.
0007 will create drwxrwx---0077 will create drwx-- which is what I want

Many thanks.
Regards,Mahmood

   

Re: External HDD is accessable for one user only

2015-01-17 Thread Mahmood N


 On Saturday, January 17, 2015 4:59 PM, Nico Kadel-Garcia 
 wrote:
   
>What does 'not accessible' mean? Where is the content showing up, and
>what are the permissions of the mounted directory? If you have it
>mounted by a hardcoded entry in /etc/fstab, show your entyr.


Anyway I unmount the drive and remount for another user. Now there is a new 
problem and that is other users are able to read/write it!

1) The mount procedure

    Disk /dev/sde: 2000.4 GB, 2000365289472 bytes
    255 heads, 63 sectors/track, 243197 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x2a81c1e9

   Device Boot  Start End  Blocks   Id  System
    /dev/sde1   1  243198  1953480704    7  HPFS/NTFS

    [root@tiger media]# mount -t ntfs-3g -o 
uid=mahmood,gid=mahmood,rw,umask= /dev/sde1 /media/HDD
    [root@tiger media]# ls -l
    total 8
    drwxrwxrwx. 1 mahmood mahmood 4096 Jan 17 10:19 HDD


2) With the user, mahmood, everything is fine.

3) With another user, the folder is accessible also!!

    [root@tiger media]# su - hadoop
    [hadoop@tiger ~]$ mkdir /media/HDD/hfolder
    [hadoop@tiger ~]$


4) Thing is, chmod command doesn't work either

    [mahmood@tiger media]$ ls -l
    total 8
    drwxrwxrwx. 1 mahmood mahmood 4096 Jan 17 12:26 HDD
    [mahmood@tiger media]$ chmod -R 700 /media/HDD/
    [mahmood@tiger media]$ su - hadoop
    Password:
    [hadoop@tiger ~]$ mkdir /media/HDD/hfolder2
    [hadoop@tiger ~]$

Isn't strange?

 Regards,
Mahmood


   

External HDD is accessable for one user only

2015-01-16 Thread Mahmood N
Hi,While I was logged in with USER1, I have attached an external HDD to the usb 
port. Everything is fine for USER1. However, when I log in with USER2, I get 
permission errors. How can I fix that? The OS is SL6.3

Regards,
Mahmood

Re: write permission error on a shared drive

2014-11-29 Thread Mahmood N
OK. I managed to solve it temporarily by adding both users to the same group 
and setting "chmod -R 775 /data"
 Regards,
Mahmood 

 On Saturday, November 29, 2014 9:49 PM, Paul Robert Marino 
 wrote:
   

 Mahmood
you will also probably need to learn about the setgid bit.



On Sat, Nov 29, 2014 at 12:23 PM, Nico Kadel-Garcia  wrote:
> On Sat, Nov 29, 2014 at 10:56 AM, Mahmood N  wrote:
>> Hi
>> A server and a client both run SL6.3. On server, I have exported a disk with
>> the following property
>>    /data 192.168.1.0/24(rw,sync,no_root_squash)
>>
>> and on the client side, I wrote this entry in the fstab
>>    192.168.1.5:/data      /data                  nfs    defaults    0 0
>>
>> However on the client side, I am not able to create folders.
>>
>> [mahmood@client data]$ mkdir afolder
>> mkdir: cannot create directory `afolder': Permission denied
>>
>> However, root has the write permission.
>>
>> [root@client data]# mkdir a
>> [root@client data]#
>>
>> How can I grant the write permission tot he user?
>>
>> Regards,
>> Mahmood
>
> You need to learn about "uid", "gid", and file system permissions.
> "The user" and "the groupo" that own a file are stored, on the NFS
> serrver's file system, as numbers. Those numbers are tied to group and
> owner as far as the login name and login user's groups by
> "/etc/passwd", "/etc/group", and lots of different network tools that
> can also do that.
>
> If the user name on the client *has the same uid and group gid
> memberships* as the server expects, then they'lll typically have
> permission to write to those directories. This is much like file
> ownership on a local directory. If someone else owns the directory,
> *and did not allow write access to others*, others will not be able to
> write there.
>
> In this case, I would do "ls -al /data" and see who owns it. Then I'd
> look up the man pages for "chown" and "chgrp" and "chmod" to get a
> handle on what you want to allow and prevent.


   

write permission error on a shared drive

2014-11-29 Thread Mahmood N
HiA server and a client both run SL6.3. On server, I have exported a disk with 
the following property   /data 192.168.1.0/24(rw,sync,no_root_squash)
and on the client side, I wrote this entry in the fstab 
   192.168.1.5:/data   /data   nfs defaults 0 0

However on the client side, I am not able to create folders.
[mahmood@client data]$ mkdir afolder
mkdir: cannot create directory `afolder': Permission denied

However, root has the write permission.
[root@client data]# mkdir a
[root@client data]#
How can I grant the write permission tot he user? Regards,
Mahmood

PXE boot problem at the the first step

2014-08-02 Thread Mahmood N
Hi,
I have stuck at the first step of diskless boot in Scietific linux! So any idea 
is appreciated


I am using virtualBox on Windows 7 and I have installed a SL6.3 guest  as the 
server and another guest as the diskless client.

The server configs are

1)
# ls /var/lib/tftpboot/ -R
/var/lib/tftpboot/:
menu.c32  pxelinux.0  pxelinux.cfg  sl6 /var/lib/tftpboot/pxelinux.cfg:
default /var/lib/tftpboot/sl6:
initrd.img  vmlinuz


2)
# cat /var/lib/tftpboot/pxelinux.cfg/default 
timeout 100
default menu.c32
menu title ## PXE Boot Menu ##
label 1
   menu label ^1) Install Scientific Linux 6
   kernel sl6/vmlinuz
   append initrd=sl6/initrd.img method=http://10.0.2.51/sl6 devfs=nomount
label 2
  menu label ^2) Boot from local drive
  localboot

3)
# cat /etc/dnsmasq.conf 

no-resolv 

no-poll 

interface=eth2 

domain=hpclab 

expand-hosts 

dhcp-range=10.0.2.52,10.0.2.100,static 

dhcp-option=42,0.0.0.0 

dhcp-boot=pxelinux.0 

enable-tftp 

tftp-root=/var/lib/tftpboot 

dhcp-host=08:00:27:69:73:7A,ws04,10.0.2.52



Now when I start the client, I receive this error


CLIENT MAC ADDR: 08 00 27 69 73 7A GUID: EF720459-193C-4558-8C46-15FF790FCD1C
PXE-E51: No DHCP or proxyDHCP offers were received


As you can see below, both server and client have the same network type 
"Internal Network" and the same adapter "PCnet-Fast III". Please see the 
pictures
   http://i.stack.imgur.com/wapyf.jpg
   http://i.stack.imgur.com/XkRIc.jpg

   http://i.stack.imgur.com/amijN.jpg



What is the problem?
Regards,
Mahmood
  
               
View on i.stack.imgur.com Preview by Yahoo  

changing primary group

2014-07-08 Thread Mahmood N
Hi
I changed the primary group of my user name to another on in order to access 
some folders of that user. However I can not access them. Why?

[root@N100 mahmood]# groups mahmood
mahmood : devs mahmood
[root@N100  mahmood]# groups devs
plotfi : devs

[mahmood@N100 ~]$ ls /home/devs/tools
ls: cannot access /home/devs/tools: Permission denied


 
Regards,
Mahmood