LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-22-2004, 03:17 PM   #1
dummoi
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Redhat9
Posts: 31

Rep: Reputation: 15
can't create new directory


Hi

As user I can't create any directory except those under /home/user/.
When I go to /dev/hdb1 I receive an error "permission denied".
As root, I can do these things.
Is this normal? Can I do something about it.

Dummoi
 
Old 06-22-2004, 03:25 PM   #2
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
it's normal, users are normally confined to the own home directories.
 
Old 06-22-2004, 03:28 PM   #3
dummoi
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Redhat9
Posts: 31

Original Poster
Rep: Reputation: 15
ok,
is it possible to mount the second hard disk to /home/user so I can use the free space of it?
 
Old 06-22-2004, 03:33 PM   #4
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
of course - but be aware that contents of /home/user would then be inaccessible as long as the other partition is mounted. instead, just make another directory with "mkdir" within /home/user, or better, under /mnt. (use "su" to become root to make them, and chmod to correct permissions - see below)

also, read these:

https://www.redhat.com/docs/manuals/...ownership.html

https://www.redhat.com/docs/manuals/...GE-FS-MOUNTING

Last edited by Genesee; 06-22-2004 at 03:35 PM.
 
Old 06-24-2004, 03:50 PM   #5
dummoi
Member
 
Registered: Mar 2004
Location: Belgium
Distribution: Redhat9
Posts: 31

Original Poster
Rep: Reputation: 15
Hi,

Thanx for the sites.. I read them and now I begin to understand a bit about permissions.
Well, the hd was mounted at /mnt/hdb1, so I didn't change that because I think it's useless. I'll put my files then under /mnt/hdb1. But of what do I have to change permissions. /dev/hdb1 or /mnt/hdb1. I can't see anything wron about the permissions

dieter@dieter:/mnt$ ls -l /dev/hdb
brw-rw-r-- 1 root disk 3, 64 Jun 9 2002 /dev/hdb
dieter@dieter:/mnt$ ls -l /dev/hdb1
brwxrwxr-x 1 root disk 3, 65 Jun 9 2002 /dev/hdb1
dieter@dieter:/mnt$ ls -l /mnt
total 28
...
drwxr--r-- 2 root root 4096 Jan 1 1970 hdb1/

Last edited by dummoi; 06-24-2004 at 04:36 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
create a directory in C++ poeta_boy Programming 15 11-02-2011 02:53 PM
How to create new directory?? Jorine Programming 4 12-01-2004 01:38 AM
Re-create /proc directory? calabash Red Hat 3 02-18-2004 01:35 AM
Can't create new directory!!?? catty Linux - Newbie 7 10-06-2003 06:33 PM
Create a directory SnowSurfAir Linux - Software 15 07-21-2003 07:12 PM


All times are GMT -5. The time now is 09:48 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration