LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-22-2004, 09:22 AM   #1
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Rep: Reputation: 30
Changing Access To Folders


I managed to mount the partition of Windows XP as to be able to see its files from Linux

but the problem is that I cant access the folder unless I am logged in as root

and when I try to change the permissions it always tells me access denied

anyone has an idea on how to solve tht problem ??
 
Old 12-22-2004, 10:10 AM   #2
cyto
Member
 
Registered: Aug 2004
Location: London
Distribution: FreeBSD 6.0, Freebsd 5.3, Freebsd 4.10, SuSE 9.2 pro, Slackware 10.1, FreeBSD 5.4 RC3
Posts: 270

Rep: Reputation: 30
Plz post ur fstab file here if u dont mind. Thanks
 
Old 12-23-2004, 04:21 AM   #3
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Original Poster
Rep: Reputation: 30
Actually The internet right now is down in my linux for Network probles tht I have posted in the network section and it is not yet solved, so can u tell me any other way ??
 
Old 12-23-2004, 05:06 AM   #4
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
man mount and read up on umask. When I mount my Windows parition I do it like this.

mount -o umask=000 /dev/hda1 /mnt/windows **Note: Change the values to match you're setup.

A umask of 000 will give all users r/w/x permissions.

-Kristijan
 
Old 12-25-2004, 03:29 AM   #5
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Original Poster
Rep: Reputation: 30
the folder in which I want to mount windows drives is /mnt/win

so I write : mount -o umask=000 /mnt/win

but it seems tht this syntax is wrong

so would u tell me exactly how to write it ??
 
Old 12-25-2004, 11:57 PM   #6
brettcave
LQ Newbie
 
Registered: Aug 2004
Location: Johannesburg, South Africa
Distribution: Mandrake, RH, Fedora
Posts: 22

Rep: Reputation: 15
mount -t smb -o umask=000,username=administrator //netbios-name/sharename /mnt/win

This should prompt you for a password.
 
Old 12-26-2004, 01:18 PM   #7
John_Emad
Member
 
Registered: Dec 2004
Posts: 196

Original Poster
Rep: Reputation: 30
I got this message

mount: fs type smb not supported by kernel
 
Old 01-02-2005, 07:04 AM   #8
brettcave
LQ Newbie
 
Registered: Aug 2004
Location: Johannesburg, South Africa
Distribution: Mandrake, RH, Fedora
Posts: 22

Rep: Reputation: 15
Your kernel was not compiled with smb fs support, you will need to recompile with support, (or you might be able to install a package to enable support). What distro do you have?

If your kernel was compiled with support.you can also try a "modprobe smbfs" and also try mount -t smbfs instead of mount -t smb.
 
Old 01-03-2005, 12:56 AM   #9
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
John_Emad,

You have just forgot to define what you actually want to mount. It should read like this;

mount {options} <partition> <mount point>

Logged in as root, execute fdisk -l This will show you all your partitions.

Code:
[root@homer ~]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        2611    20972826    7  HPFS/NTFS
/dev/hda2            2612        3856    10000462+  83  Linux
/dev/hda3            3857        9729    47174872+  83  Linux
As you can see from the output of fdisk, my Windows partition is /dev/hda1. I simply substitue that into my syntax. It now reads...

mount -o umask=000 /dev/hda1 /mnt/win

Execute the command and enjoy

-Kristijan
 
Old 01-03-2005, 01:52 AM   #10
brettcave
LQ Newbie
 
Registered: Aug 2004
Location: Johannesburg, South Africa
Distribution: Mandrake, RH, Fedora
Posts: 22

Rep: Reputation: 15
Don't know why i suggested trying to use smb - jumped to the conclusion that you were mouning over a network.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing file permissions within multiple folders cloudxiii Linux - Newbie 1 02-21-2005 12:20 AM
Changing ownership of folders Nurfen Linux - Newbie 1 08-01-2004 12:00 PM
Changing permission of folders and subfolders pablowablo Linux - Newbie 2 07-28-2004 12:11 AM
Folders not showing up! ::changing folder colors:: XxAndyxX Linux - Software 1 03-24-2003 04:04 AM
Changing kernel source folders chingasman Linux - General 2 01-07-2003 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration