cifs permissions issue solved

Posted by hyling on July 5th, 2009 filed in Uncategorized
Comment now »

Well, thanks to a post to cifs-discuss one of the nice sun guys answered my questions.

The cifs server ran but whenever a user copied files to the share, it would be created without permissions.  Turns out I have to set ACL permissions on the share.

This sets the ACLs so only the owner has permissions:

note: you’re using /usr/bin/chmod if you only use chmod it’ll default to the gnu version which is not what you want.

# /usr/bin/chmod A=owner@:full_set:fd:allow <your-root-dir>


importing a storage pool

Posted by admin on April 12th, 2009 filed in Uncategorized
Comment now »

I need to import the raid storage pool I was using with this:

zpool import pool_name

if it wasn’t exported you’ll need to use the -f option:

zpool import -f pool_name

If you previously had smb shares enable, you can save yourself some work by installing and enabling smb/server before doing the import!


setup smb server

Posted by admin on April 12th, 2009 filed in Uncategorized
Comment now »

install :

SUNWsmbs

SUNWsmbskr

svcadm enable smb/server

svcs smb/server

should show online, if it doesn’t then try restarting

Step 3: Share the filesystem using CIFS.

# zfs set sharesmb=on mypool/myfs2

Step 5: Edit the file /etc/pam.conf to support creation of an encrypted version of the user’s password for CIFS.

Add the following line to the end of the file:

other password required pam_smb_passwd.so.1 nowarn

Step 6: Change the password using the passwd command.

# passwd username New Password: Re-enter new Password: passwd: password successfully changed for root

Setting permissions:

# /usr/bin/chmod A=owner@:full_set:fd:allow <your-root-dir>

====

login from the window’s client

use: tools > map data drive

use this format

//server/path

example

//192.168.1.140/datapool


Testing zfs pool imports

Posted by admin on January 18th, 2009 filed in Uncategorized
Comment now »

Looks like this works for me.  In exported my raidz array and then imported it to another system…