Anonymous_User Absent Member.
Absent Member.
1332 views

rights command on ReiserFS - is it meant to work?

I have a server setup with some NCP shares, one on a ReiserFS LVM volume
and one on an NSS volume - doing some testing:

ResierFS on LVM:
/dev/mapper/system-disk on /disk type reiserfs (rw)

NSS:
DATA on /media/nss/DATA type nssvol (rw,name=DATA)


When I use the rights command on the NSS volume it works fine, but on
the Resier volume is reports an error as below:

Command: rights -f FOLDER/ -r rcf trustee user.org.TREE
Error adding trustee: Error finding file

I've tried every combination thinking I had the syntax wrong, but the
command works perfectly on the NSS volume.

If I assign trustee rights using a Windows PC, it correctly works on
both volumes and is reflected correctly in the trustees database xml
file on both volumes.

Am I missing something here? Is what I'm doing supposed to work or is
it a known limitation?

The reason I'm trying this is to do test a complete data restore from
backups after parsing the trustees XML file and generating the rights
commands. Works fine on NSS, not Reiser, as above.

Thanks,

Ryan
Labels (2)
0 Likes
2 Replies
Anonymous_User Absent Member.
Absent Member.

Re: rights command on ReiserFS - is it meant to work?

Ryan wrote:

> Am I missing something here?  Is what I'm doing supposed to work or is
> it a known limitation?

I'm not 100% sure but I think that's the way it works..

the NCP server will use the xml file if you are comming via the ncp "volume"
but on the local partition only the native rights work.

the rights command on the local linux box will directly set the rights on
the filesystem.. in which case nss does work as it understands the rights
and reiser fails..

I would guess that we see some changes there in the future.. I guess if
nobody else answers the best think to hack this would be to parse the xml
file and make the corresponding changes to it so that it maps correctly to
the new location, keep in mind that it is only being used from the outside
if it is reiser..
--
Marcus Breiden

If you are asked to email me information please change -- to - in my e-mail
address.
The content of this mail is my private and personal opinion.
http://www.edu-magic.net
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: rights command on ReiserFS - is it meant to work?

Marcus Breiden wrote:

> I'm not 100% sure but I think that's the way it works..
>
> the NCP server will use the xml file if you are comming via the ncp "volume"
> but on the local partition only the native rights work.
>
> the rights command on the local linux box will directly set the rights on
> the filesystem.. in which case nss does work as it understands the rights
> and reiser fails..
>
> I would guess that we see some changes there in the future.. I guess if
> nobody else answers the best think to hack this would be to parse the xml
> file and make the corresponding changes to it so that it maps correctly to
> the new location, keep in mind that it is only being used from the outside
> if it is reiser..


Ahh yes, that makes sense now.

I realised on the SYS share there is a RIGHTS.EXE file which I could
achieve the same thing with in the 'external' sense from a Windows PC.
I've just tried and it works, but takes a different syntax, so with a
small tweak I guess that is a solution.

Cheers,

Ryan
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.