Re: [OpenAFS] file ownership for root (UID 0)

2010-02-09 Thread Todd M Lewis
On 01/12/2010 02:50 AM, Karl Tißner sent: Since it is not possible to create an user with AFS UID 0, all files created by root are not owned by root (Debian Linux, root has UID 0): # pts createuser -name testtest -id 0 0 isn't a valid user id; aborting What is the standard way to handle

Re: [OpenAFS] file ownership for root (UID 0)

2010-01-11 Thread Todd M. Lewis
On 01/11/2010 05:21 AM, Karl Tißner sent: Hello openafs-info, This seems to me like an frequently asked question, but I didn't find the answer searching the web. When writing into an AFS directory, the file ownership is set to the appropriate AFS id, not the Unix UID of the the user,

[OpenAFS] order of directory entries re: creat() vs readdir()

2009-09-01 Thread Todd M. Lewis
We have a process that may run on any number of clients and at various times, the result of each run is to drop a small file into a common directory. These files represent queued work requests that get done in batches about once per hour by another process running on a single server. That process

Re: [OpenAFS] user-visible change suggestion for fs setacl

2008-12-16 Thread Todd M Lewis
Would it make sense to say f'rinstance +w rather than w+ to keep it similar to chown? Seems like having two different ways to accomplish such similar ideas is just the sort of thing that keeps the WIMP crowd shaking their heads at the command-liners. -- todd_le...@unc.edu On 12/16/2008 01:42 PM,

Re: [OpenAFS] flock on AFS files

2008-10-27 Thread Todd M. Lewis
I've got quite a bit of code that does flock() on files in AFS, but I've always worked under the assumption that this would only work if a single client is doing the writing. I don't recall whether that assumption was based on empirical testing, reading it somewhere, or being told. In those

Re: [OpenAFS] Version of du that doesn't traverse AFS mount points?

2008-08-27 Thread Todd M. Lewis
Simon Wilkinson wrote: On 27 Aug 2008, at 02:18, Chas Williams (CONTRACTOR) wrote: In message [EMAIL PROTECTED],Mike Shaddock writes: I'm looking for a version of du where the -x option (skip directories on different file systems) doesn't traverse an AFS mount poi nt. Haven't been able

Re: [OpenAFS] best practice for salvage

2008-04-05 Thread Todd M. Lewis
Jeffrey Altman wrote: The way I would have implemented this functionality would be for the file to be moved into the local client's cache and removed from the file server since the file has now been unlinked and can therefore not be referenced by other clients. It would then be the client's

Re: [OpenAFS] Strange access problems on one client

2007-09-24 Thread Todd M. Lewis
Harald Barth wrote: [EMAIL PROTECTED] ~ % LANG= ll /afs/grand.central.org/ ls: cannot access /afs/grand.central.org/local: No such file or directory ls: cannot access /afs/grand.central.org/software: No such file or directory total 14K drwxrwxrwx 3 root root 2.0K Jun 17 2004 archive/

Re: [OpenAFS] transitive fs la?

2007-09-03 Thread Todd M. Lewis
Todd M. Lewis wrote: Derrick J Brashear wrote: On Sun, 2 Sep 2007, Adam Megacz wrote: A user's rights on a directory are effectively moot unless s/he has l permissions on every ancestor directory (up to the volume root). So you could say that the transitive acl of a directory is its acl

Re: [OpenAFS] transitive fs la?

2007-09-02 Thread Todd M. Lewis
Derrick J Brashear wrote: On Sun, 2 Sep 2007, Adam Megacz wrote: A user's rights on a directory are effectively moot unless s/he has l permissions on every ancestor directory (up to the volume root). So you could say that the transitive acl of a directory is its acl minus permissions which

Re: [OpenAFS] 1.4.2 fileserver keep getting large number of blocked connections

2007-08-01 Thread Todd M. Lewis
Is there a way to tell the fileservers not to talk to clients below a certain rev, or only allow reads? That should encourage them to upgrade. Or leave. Not nice maybe, but if old clients can DoS your servers... Jeffrey Altman wrote: Matthew Cocker wrote: I wish. I still have people using

Re: [OpenAFS] AFS and XEN Virtualization

2007-07-10 Thread Todd M. Lewis
Zach wrote: On 7/9/07, Thomas Kula [EMAIL PROTECTED] wrote: AFS does not do read/write replicas. Why can't/doesn't it do this? Just curious. Several possible answers. (1) It's a _really_ hard problem (with surprisingly little payoff IMHO; better to put that effort into buying and

Re: [OpenAFS] cgi and afs?

2007-06-08 Thread Todd M. Lewis
Zach wrote: I was talking to our sys admin. about allowing us users to run cgi programs from our afs accounts (served from $HOME/www which has system:anyuser rl) and asked if the web server could do this and was told first that the CMU AFS team was working on a way to make CGI principles for

Re: [OpenAFS] Problem with IP-Based ACLs

2007-05-03 Thread Todd M. Lewis
Adnoh wrote: Hello @all I'm new to afs and have a litte problem which I'm not able to solve: I'm using openafs 1.4.1-r1 on a Gentoo-Linux box. I've created a folder /afs/.mydomain/test and a pts user 192.168.0.1 + 192.168.10.1 and a pts group afshosts with these users as members. then I fs

Re: [OpenAFS] Backup methods

2007-03-30 Thread Todd M. Lewis
On Thu, Mar 29, 2007 at 10:07:42AM +0200, Gert Burger wrote: We are currently switching to openafs but are concerned about how to backup our data. My problem with dumping a volume and doing a backup of that is that it seems difficult to do incrementals. We only have enough space for about 3x

Re: [OpenAFS] Big Initial Question about OpenAFS

2007-03-19 Thread Todd M. Lewis
I'm afraid you're going to be disappointed, unless you have only one OpenAFS server. The OpenAFS clients communicate with whichever server(s) house the volumes they are trying to use. Volumes contain what looks like a directory of subtrees with files, directories, and symbolic links, but they

[OpenAFS] Re: fs setacl and permissions

2007-01-31 Thread Todd M. Lewis
I see a need for both solutions. Would it be possible to change the behaviour on a per-fileserver basis? That you could allow one scenario on volumes on fileserver a and allow the other on fileserver b. Perhaps a flag to the fileserver on start-up to select which method the cell admin would

Re: [OpenAFS] Undelete support feedback request

2006-12-07 Thread Todd M. Lewis
Life gets interesting when multiple files with the same name have been deleted, but maybe you don't care about that (I would). Not so interesting. The function to list the entries reports multiple files with the same name. ... and how do you pick which one you're undeleting? I mean, I know

Re: [OpenAFS] Some advice please

2006-11-14 Thread Todd M. Lewis
Matt Hampton wrote: Hi I have probably missed this whilst looking through the FAQ so forgive me if I am asking stupid questions. These are good questions, but I don't think you'll like these answers. I am looking to migrate to a DFS to provide increased resilience to our business and to

Re: [OpenAFS] access control lists

2006-08-21 Thread Todd M. Lewis
Daniel Miller wrote: Is there a way to do fs setacl recursively? -Daniel Here's a recursive fs sa for afs using xargs: find . -noleaf -type d -print0 | xargs -0 -n 2 fs sa -acl XX YY -dir A few things to notice: * -noleaf in AFS makes find do the Right Thing at the root of volumes. *

[OpenAFS] Choosing Cell Names (was Re: Changing AFS database server names)

2006-06-27 Thread Todd M. Lewis
Brian Sebby wrote: We're going to be upgrading our AFS cell in the coming months, and my boss has informed me that he wants to change the names of our AFS database servers from their current domain (which is our old department name) to our new server subdomain. This question got me thinking

[OpenAFS] Re: OpenAfs and MS Office: Delayed Write Failed

2006-05-31 Thread Todd M. Lewis
Jeffrey Altman wrote: With the deadlock removed, saving files from Microsoft Office applications in Frank's environment does not result in a delayed write error. [...] This fix will appear in 1.4.2 and 1.5.2. Jeffrey Altman Just to be clear, is this a server fix or a client fix? --

Re: [OpenAFS] multiple afs client, or have two caches

2006-05-11 Thread Todd M. Lewis
You might be surprised at the differences between what you think should be in the cache and what actually should be there. But in any case, the client doesn't have any sort of multi-policy cache capabilities that I'm aware of. If you've got a list of files that you really want to keep cached,

Re: [OpenAFS] Windows Client, quota and filemanager - no warning!

2006-01-12 Thread Todd M. Lewis
Jeffrey Altman wrote: I have tested the functionality on Windows 2003 SP1 and everything behaves exactly as it should. It doesn't matter whether I copy or move from the command line or whether I drag/drop 1000 files or whether I copy/paste files. It all works just fine. So as far as I am

Re: [OpenAFS] apache and home directories on with 1.4 client

2006-01-11 Thread Todd M. Lewis
Perhaps it's related to home directory issues, but based on my experience, I think you're running into an issue with SELinux. The default SELinux policies make /afs basically invisible to httpd. As a quick test, you can disable SELinux enforcement (see /etc/selinux/config), reboot, and see if

Re: [OpenAFS] Windows Client, quota and filemanager - no warning!

2006-01-11 Thread Todd M. Lewis
Jeffrey, Your explanation of the error flows through the various levels is informative, and I believe you are 100% right on the level you are talking about. From the user's perspective, however, all he sees is that he goes to move/copy a file with the standard tools the Desktop provides,

Re: [OpenAFS] AFS and Apache Virtual Directory

2005-11-22 Thread Todd M. Lewis
If you're running Apache on Fedore Core 4 and SELinux is enabled, Apache won't be able to see anything in AFS. The easiest solution is to disable SELinux, but then you don't get any of SELinux's protections. Alternatively, you can use audit2why to find out what it is about your SELinux

Re: [OpenAFS] /afs permissions

2005-10-28 Thread Todd M. Lewis
[EMAIL PROTECTED] wrote: On 10/28/05, Joe Buehler [EMAIL PROTECTED] wrote: Something of importance, is putting sensitive information like ssh private keys and PGP keys, etc in AFS is a bad idea unless you have encryption in there someplace. Same is true for any network based filesystem.

Re: [OpenAFS] pam and OpenAFS

2005-10-27 Thread Todd M. Lewis
That's not a problem; that's how it's supposed to work. Think about it this way. Say you have a cell with, oh, 40,000 active users (like us), and your desktop machine is an AFS client. How do you control which of those 40,000 people can login to your machine? You only put in /etc/passwd

Re: [OpenAFS] Firewall politics and AFS deployment

2005-09-27 Thread Todd M. Lewis
Simeon Miteff wrote: [...] Looking at the public CellServDB, I can't help wondering how AFS servers are connected at other universities? Are we overly firewalled? Yes. Do other HPC centres maintain separate AFS cells for cluster users? No. Any thoughts? You gain nothing by

Re: [OpenAFS] OpenAFS in a production environment

2005-09-06 Thread Todd M. Lewis
Lester Barrows wrote: In an out-of-band discussion, Jeffrey Altman has managed to convince me (not an easy task mind you!) that Transarc AFS servers are more likely the cause of our NAT troubles with AFS clients. For this reason I'm amending my initial statement to say that if you access

Re: [OpenAFS] mount points and replication problems

2005-07-12 Thread Todd M. Lewis
Cédric CACHAT wrote: Hello, this is the first time I write and I am pretty new to AFS. I have a question regarding mount points in AFS. Here is what I'm trying to achieve: I want all my users to have their home directory in AFS, the plan is to set an AFS tree looking like:

Re: [OpenAFS] HP-UX file systems on client

2005-04-20 Thread Todd M. Lewis
rogbazan wrote: Hi, i´m installing a client on a HP-UX, i knew that the file system type where /usr/vice and /usr/vice/etc will be has to be (and only) hfs, is that correct? Could i create those dirs on a volume manager FS? This is my first time on the issue (HP-UX). I´ve been trying to find that

Re: [OpenAFS] Linux client and find command in AFS

2005-04-05 Thread Todd M. Lewis
Rodney M Dyer wrote: At 01:49 PM 4/5/2005, Derrick J Brashear wrote: use the -noleaf option to find. it's not an afs bug, so you found no bug. Actually, why isn't this a bug? He doesn't need the -noleaf option if there is at least one other real directory in the root of the directory he is

Re: [OpenAFS] OpenAFS dup partition to different servers

2005-03-24 Thread Todd M. Lewis
Andrew Velikoredchanin [EMAIL PROTECTED] wrote: This meen - I can not update files on replication valumes? That's correct. I need generaly add new files and remove old files on this valumes - no need change files. It doesn't matter. The replication is not at the file level, it's at the volume

Re: [OpenAFS] Question about append-only directories and ownership of files

2005-03-23 Thread Todd M. Lewis
Derrick J Brashear wrote: On Tue, 22 Mar 2005, Bob Cook wrote: On Monday, March 21, 2005, Todd Lewis wrote: Not quite. The owner of a directory has implied administrator rights in that directory. [...] although Todd is right about the behavior, Derrick Brashear acknowledged at last year's Best

Re: [OpenAFS] ports used by OpenAFS?

2005-03-22 Thread Todd M. Lewis
[EMAIL PROTECTED] wrote: Hello everybody, I'm setting up an OpenAFS-cell, now I want to configure my firewall but don't know wich ports are used by OpenAFS. Can someone help me? You didn't indicate what type of firewall you are configuring. However, here are the relevant lines from my

Re: [OpenAFS] Question about append-only directories and ownership of files

2005-03-21 Thread Todd M. Lewis
Dexter 'Kim' Kimball wrote: In general AFS doesn't care about ownership/mode bits -- ignores them entirely on directories, Not quite. The owner of a directory has implied administrator rights in that directory. That may be relevant here. Or not. Whatever. --

Re: [OpenAFS] Evaluating OpenAFS: Questions

2005-01-13 Thread Todd M. Lewis
Jeffrey Altman wrote: Rolandas Naujikas wrote: P.S. Sorry for not be able support the efforts to improve code, but I have too much work. I'm not sympathetic. We all have too much work. If you are going to rely on an open source technology and its community to provide services to your end

Re: [OpenAFS] PTS groups

2004-11-29 Thread Todd M. Lewis
Derek Atkins wrote: Matthew Cocker [EMAIL PROTECTED] writes: v) are groups of groups possible? I know there were patches available to make this happen. I do not know if they were ever merged back into the openafs mainline. Wow. Was this a server- or client-side thing? Would this cause

Re: [OpenAFS] Read-only issues

2004-11-01 Thread Todd M. Lewis
Derek Harkness wrote: Correct I'm replicating my home volumes. My solution to not having read-write replication is just releasing the volumes every couple of minutes or whenever they need to be released. [Sigh] This is not recommended. But if that isn't possible or not recommended then AFS is

Re: [OpenAFS] Pro's Con's of /usr/local on AFS....

2004-10-29 Thread Todd M. Lewis
Jeffrey Hutzelman wrote: [...] Don't use them in [...] email messages [...]. Otherwise you _will_ regret it later. Yup. I sure do regret putting one in the email to this list that lit the fuse on this discussion. My mozilla's delete button is 'bout wore out. --

Re: [OpenAFS] Pro's Con's of /usr/local on AFS....

2004-10-27 Thread Todd M. Lewis
Joshua Johnson wrote: So, at the risk of starting something here, I am going to ask what other peoples experiences are with placing /usr/local in AFS and sharing among machines of same @sys type (much like the AdminGuide suggests). I think it depends on how much administrative control you

Re: [OpenAFS] Pro's Con's of /usr/local on AFS....

2004-10-27 Thread Todd M. Lewis
Jim Rees wrote: '/afs/isis' is a symbolic link, leading to a mount point for volume 'root.cell'. So you broke one of the most important features of afs, the global name space. Why? 'Cause we're stupid? 'Cause I didn't want to make an already too long message even longer? Actually, we

Re: [OpenAFS] pts and nsswitch

2004-02-11 Thread Todd M. Lewis
/nss_pts_0.2.tgz if you're interested. It's GPL'd, 'cause it uses code from samba, so I don't know how that mixes/matches with other OpenAFS contribs. Just do the Right Thing. Happy computing, -- [EMAIL PROTECTED] In September, 2002, Todd M. Lewis wrote: Greetings, I've often wished ls -l would

Re: [OpenAFS] 'split' a tree of directory into volumes?

2004-02-09 Thread Todd M. Lewis
Lester Barrows wrote: [... good stuff about 'up' not preserving directory timestamps...] It seems to work as-is, but begs the question: If it's that easy, do you (or does anyone) know why this isn't done already? Sure: Nobody's contributed the code. Seriously. When I added the bits to make

Re: [OpenAFS] OpenAFS volumes filesystem

2002-11-12 Thread Todd M. Lewis
http://grand.central.org/twiki/bin/view/AFSLore/AdminFAQ#3_29_What_underlying_filesystems http://grand.central.org/twiki/bin/view/AFSLore/SupportedConfigurations yam wrote: Hello, I'm starting up an OpenAFS installation, and I've arrived to my first dilema... What filesystem to use for openafs

[OpenAFS] Re: State of OpenAFS

2002-02-28 Thread Todd M. Lewis
Todd M. Lewis wrote: Wout Mertens wrote: Anything else that is different versus 'regular' unix filesystems? * ACLs apply to whole directories * Only the first 3 bits of a file's permissions are relevant (which gives you 6 free bits to do with whatever crazy things you want

Re: [OpenAFS] small problems with openafs rpm, 1.2 w/ redhat 7.1

2001-09-24 Thread Todd M. Lewis
[EMAIL PROTECTED] wrote: I believe kpasswd should be kapasswd. kpwvalid is because I don't have the server installed. kpwvalid is used by kapasswd to ensure the new password meets requirements of the local site. By default, it only tests password length, but you could add further tests (as