Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lotus Notes, wine and file permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
john36
Tux's lil' helper
Tux's lil' helper


Joined: 16 Jul 2002
Posts: 141
Location: Boston

PostPosted: Mon Dec 30, 2002 10:19 pm    Post subject: Lotus Notes, wine and file permissions Reply with quote

This isn't gentoo specific, but here goes.

I have a dual boot system with Win2000 and gentoo 1.4rc1.

I have LotusNotes on the windows side and I can acccess it quite easily through wine
from the gentoo side.

I mount my windows partition as follows:

dev/hda1 /c vfat umask=000,noauto,user 0 0

I just added the umask field today, but it didn't change anything (see below for problem description)
I mount the windows drive as a user, and all the windows files indicate ownership by "user", including the notes mail data file.
When I run lotus notes as a user, I can get into my mail database, see all my email listed,
but when I try to read an email I get the following error message
(generated by notes, I believe)

access to data denied.

The weird thing is, I can delete mail mesages, I just cannot read them. I cannot create new mail, either.

Naturally, when I run notes as root, everything works fine.

Anyone have any ideas?

Thanks!!
Back to top
View user's profile Send private message
zhenlin
Veteran
Veteran


Joined: 09 Nov 2002
Posts: 1361

PostPosted: Tue Dec 31, 2002 8:32 am    Post subject: Reply with quote

Try using these settings in combinations uid, gid, umask, dmask and fmask.
Back to top
View user's profile Send private message
keratos68
Guru
Guru


Joined: 27 Dec 2002
Posts: 561
Location: Blackpool, Lancashire, UK.

PostPosted: Tue Dec 31, 2002 11:06 am    Post subject: Reply with quote

Try:

Code:

id



Now note down the output of your User and Group IDs then, in /etc/fstab, modify your line to read:

Code:

/dev/hda1  /c  vfat  umask=0770,uid=UUU,gid=GGG,rw



Where UUU and GGG are your Usre and Group ID numbers.
_________________
Someone told me that "..they only ever made one mistake...."

...and that's when they said they were wrong!!
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Dec 31, 2002 11:37 am    Post subject: Reply with quote

dazzle68 wrote:
Code:
/dev/hda1  /c  vfat  umask=0770,uid=UUU,gid=GGG,rw

i have neither fat nor ugly partitions available here to test this, but an umask of 770 leads to files with mode 00[0-7] (no permissions for user and group)...
Back to top
View user's profile Send private message
keratos68
Guru
Guru


Joined: 27 Dec 2002
Posts: 561
Location: Blackpool, Lancashire, UK.

PostPosted: Tue Dec 31, 2002 11:55 am    Post subject: Reply with quote

No - the first 0 is StickyBit (not used in vfat) the other three (770) are rwx for User and Group, nothing for any1else.

0770 is correct.
_________________
Someone told me that "..they only ever made one mistake...."

...and that's when they said they were wrong!!
Back to top
View user's profile Send private message
jukka
Apprentice
Apprentice


Joined: 06 Jun 2002
Posts: 249
Location: Zurich, Switzerland

PostPosted: Tue Dec 31, 2002 12:48 pm    Post subject: Reply with quote

hi,
dazzle68 wrote:
No - the first 0 is StickyBit (not used in vfat) the other three (770) are rwx for User and Group, nothing for any1else.

you mix file permissions and umask:
umask(2) wrote:
"The umask is used by open(2) to set initial file permissions on a newly-created file. Specifically, permissions in the umask are turned off from the mode argument to open(2)[...]"


what you probably want are file permissions 0770, so you have to use an umask of 0007. test it in your shell:
Code:
$ printf '%.4o\n' "$((0777 & ~0007))"
0770


btw: your first 0 can also be suid and sgid. for more information see /usr/include/(sys|linux)/stat.h
Back to top
View user's profile Send private message
keratos68
Guru
Guru


Joined: 27 Dec 2002
Posts: 561
Location: Blackpool, Lancashire, UK.

PostPosted: Tue Dec 31, 2002 1:03 pm    Post subject: Reply with quote

Jukka is correct and I'm talkin shite, was running instead of walking..

The permissions you need to set are 0770 and the user mask IS INDEED 007, so...

jukka wrote:
dazzle68 wrote:
Code:
/dev/hda1  /c  vfat  umask=0770,uid=UUU,gid=GGG,rw

i have neither fat nor ugly partitions available here to test this, but an umask of 770 leads to files with mode 00[0-7] (no permissions for user and group)...


Shold be
Code:

/dev/hda1  /c  vfat  mode=0770,umask=770,uid=UUU,gid=GGG,rw



:oops: :oops: :oops:


My apologies Jukka, I was in a twist there wasn't I - thanks 4 pulling me out.
_________________
Someone told me that "..they only ever made one mistake...."

...and that's when they said they were wrong!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum