Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't create files on new hard drive

Status
Not open for further replies.

Job317

Programmer
Aug 15, 2007
37
US
OK, I'm 99% of the way home. I've got my new 20 GB drive partitioned and formatted. I can mount it as root at /x/hdisk1 and cd and ls -l and see the lost+found folder.

However, as a normal user, I cannot create new folders here. I get "Permission denied"

If I create a folder as root then chown it for the user, the user can then use it.

The mount point is created at /x/hdisk1:

Code:
# ls -l
total 28
drwxrwxrwx   2 root     other        512 Nov 27 11:18 hdisk1

But when I mount it using my /etc/vfstab entry:

Code:
/dev/dsk/c0t1d0s0       /dev/rdsk/c0t1d0s0      /x/hdisk1       ufs     1       yes     rw

the permissions change to:

Code:
drwxr-xr-x   4 root     users        512 Nov 27 16:18 hdisk1

I want users to be able to go to the /x/hdisk1 folder and create their own folders and files as their user.

Do I have my /etc/vfstab entry incorrect for this or does this get fixed elsewhere?

Thanks.


 
Try chmod -R 775 /x/hdisk1

It will give the read/write/execute permissions to anyone in the 'users' group.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top