config id used in grml-rebuildfstab

Hi
Currently,
grml-rebuildfstab executes '"rebuildfstab -v -r -u $fstabuser -g $fstabuser'" where $fstabuser is the user with the UID 1000.
Is this UID 1000, GID 1000 configurable somewhere?
thanks

* T mlist4suntong@yahoo.com [20061026 06:15]:
grml-rebuildfstab executes '"rebuildfstab -v -r -u $fstabuser -g $fstabuser'" where $fstabuser is the user with the UID 1000.
Is this UID 1000, GID 1000 configurable somewhere?
Not yet.
If you want to adjust the alias for your needs just redefine the alias via ~/.zshrc.local or /etc/zsh/zshrc.local.
But I'll think about it whether we can use a less static version.
regards, -mika-

On Thu, 26 Oct 2006 12:16:14 +0200, Michael Prokop wrote:
grml-rebuildfstab executes '"rebuildfstab -v -r -u $fstabuser -g $fstabuser'" where $fstabuser is the user with the UID 1000.
Is this UID 1000, GID 1000 configurable somewhere?
Not yet.
If you want to adjust the alias for your needs just redefine the alias via ~/.zshrc.local or /etc/zsh/zshrc.local.
% ls -l ~/.zshrc.local /etc/zsh/zshrc.local ls: /root/.zshrc.local: No such file or directory ls: /etc/zsh/zshrc.local: No such file or directory
% type grml-rebuildfstab bash: type: grml-rebuildfstab: not found
Hm.., how is rebuildfstab called when new device is plugged in? It should not be a alias, should it?
But I'll think about it whether we can use a less static version.
thanks, I hope we can do it in /etc/grml/autoconfig, we have CONFIG_FSTAB already at least.

* T mlist4suntong@yahoo.com [20061026 17:15]:
On Thu, 26 Oct 2006 12:16:14 +0200, Michael Prokop wrote:
grml-rebuildfstab executes '"rebuildfstab -v -r -u $fstabuser -g $fstabuser'" where $fstabuser is the user with the UID 1000.
Is this UID 1000, GID 1000 configurable somewhere?
Not yet.
If you want to adjust the alias for your needs just redefine the alias via ~/.zshrc.local or /etc/zsh/zshrc.local.
% ls -l ~/.zshrc.local /etc/zsh/zshrc.local ls: /root/.zshrc.local: No such file or directory ls: /etc/zsh/zshrc.local: No such file or directory
The files don't exist by default, it allows you to create your own configuration for zsh without having to touch the files shipped by debian packages. The files are sourced by /etc/zsh/zshrc and $HOME/.zshrc (the file deriving from /etc/skel/.zshrc).
% type grml-rebuildfstab bash: type: grml-rebuildfstab: not found
Wrong shell. :)
Hm.., how is rebuildfstab called when new device is plugged in? It should not be a alias, should it?
man rebuildfstab
But I'll think about it whether we can use a less static version.
thanks, I hope we can do it in /etc/grml/autoconfig, we have CONFIG_FSTAB already at least.
This is what I'm planning to do, yes. (Needs detailed design though because of the several places where rebuildfstab is used.)
regards, -mika-

On Thu, 26 Oct 2006 17:21:07 +0200, Michael Prokop wrote:
Is this UID 1000, GID 1000 configurable somewhere?
Not yet.
...
Hm.., how is rebuildfstab called when new device is plugged in? It should not be a alias, should it?
man rebuildfstab
Done in /etc/udev/grml_usbdev.rules?
I saw in the script that it uses "-g users", which is 100 in my system, but why files show up as group id 1000? Are you aware of it?
-rwxr-xr-x 1 1000 1000 3368361 08-20 00:22 imgp0046.jpg* -rwxr-xr-x 1 1000 1000 3323355 10-14 10:35 imgp0047.jpg* -rwxr-xr-x 1 1000 1000 3497150 10-14 10:36 imgp0048.jpg*
It was grml-rebuildfstab v0.3-8, BTW.

* T mlist4suntong@yahoo.com [20061027 04:15]:
On Thu, 26 Oct 2006 17:21:07 +0200, Michael Prokop wrote:
Is this UID 1000, GID 1000 configurable somewhere?
Hm.., how is rebuildfstab called when new device is plugged in? It should not be a alias, should it?
man rebuildfstab
Done in /etc/udev/grml_usbdev.rules?
Yes, activated via /etc/udev/rules.d/z31_grml_usbdev.rules
I saw in the script that it uses "-g users", which is 100 in my system, but why files show up as group id 1000? Are you aware of it?
-rwxr-xr-x 1 1000 1000 3368361 08-20 00:22 imgp0046.jpg* -rwxr-xr-x 1 1000 1000 3323355 10-14 10:35 imgp0047.jpg* -rwxr-xr-x 1 1000 1000 3497150 10-14 10:36 imgp0048.jpg*
It was grml-rebuildfstab v0.3-8, BTW.
Please show the entry for the device in /etc/fstab where the above files are hanging around, plus the corresponding "mount"-output.
regards, -mika-

On Fri, 27 Oct 2006 12:02:37 +0200, Michael Prokop wrote:
I saw in the script that it uses "-g users", which is 100 in my system, but why files show up as group id 1000? ...
Please show the entry for the device in /etc/fstab where the above files are hanging around, plus the corresponding "mount"-output.
$ tail -3 /var/log/messages Oct 27 10:02:26 cxmr kernel: sd 3:0:0:0: Attached scsi removable disk sdb Oct 27 10:02:28 cxmr rebuildfstab[6704]: re-generating /etc/fstab - see 'man rebuildfstab' Oct 27 10:02:33 cxmr rebuildfstab[7051]: re-generating /etc/fstab - see 'man rebuildfstab'
$ grep /mnt/usb-sd /etc/fstab /dev/usb-sdb /mnt/usb-sdb auto user,noauto,nodev,noatime,nosuid,noexec,rw,uid=1000,gid=1000 0 0 /dev/usb-sdb1 /mnt/usb-sdb1 auto user,noauto,nodev,noatime,nosuid,noexec,rw,uid=1000,gid=1000 0 0
% mount /mnt/usb-sdb1
$ ls -l /mnt/usb-sdb1 total 16 drwxr-xr-x 3 1000 1000 16384 2006-04-23 dcim/
$ apt-cache policy grml-rebuildfstab grml-rebuildfstab: Installed: 0.3-12 Candidate: 0.3-12 Version table: *** 0.3-12 0 683 http://grml.org ./ Packages 100 /var/lib/dpkg/status
Further question, why is rebuildfstab called twice?

* T mlist4suntong@yahoo.com [20061027 16:21]:
On Fri, 27 Oct 2006 12:02:37 +0200, Michael Prokop wrote:
I saw in the script that it uses "-g users", which is 100 in my system, but why files show up as group id 1000? ...
Please show the entry for the device in /etc/fstab where the above files are hanging around, plus the corresponding "mount"-output.
$ tail -3 /var/log/messages Oct 27 10:02:26 cxmr kernel: sd 3:0:0:0: Attached scsi removable disk sdb Oct 27 10:02:28 cxmr rebuildfstab[6704]: re-generating /etc/fstab - see 'man rebuildfstab' Oct 27 10:02:33 cxmr rebuildfstab[7051]: re-generating /etc/fstab - see 'man rebuildfstab'
Ok.
$ grep /mnt/usb-sd /etc/fstab /dev/usb-sdb /mnt/usb-sdb auto user,noauto,nodev,noatime,nosuid,noexec,rw,uid=1000,gid=1000 0 0 /dev/usb-sdb1 /mnt/usb-sdb1 auto user,noauto,nodev,noatime,nosuid,noexec,rw,uid=1000,gid=1000 0 0
Hm.
% mount /mnt/usb-sdb1
$ ls -l /mnt/usb-sdb1 total 16 drwxr-xr-x 3 1000 1000 16384 2006-04-23 dcim/
$ apt-cache policy grml-rebuildfstab grml-rebuildfstab: Installed: 0.3-12 Candidate: 0.3-12 Version table: *** 0.3-12 0 683 http://grml.org ./ Packages 100 /var/lib/dpkg/status
Ok. Is the entry OK if you manually run:
# rebuildfstab -v -r -u $USER -g $GROUP
and replace $USER with your username and $GROUP with the groupname of your user?
Further question, why is rebuildfstab called twice?
Because the udev-rule KERNEL=="sd[a-z]*" matches the disk *and* each of its partitions. Thinking about it, "sd[a-z]" should be OK as well.
@Tobias: udev 0.103-0grml1 is fine for me, I just incorporated the updated /etc/udev/grml_usbdev.rules version into our udev repository:
http://hg.grml.org/udev/?cmd=changeset;node=94075e242354;style=gitweb
Please ACK the rule via building the package then, thanks. :)
regards, -mi'time for a BIG cup of coffe'ka-

On Fri, 27 Oct 2006 16:52:13 +0200, Michael Prokop wrote:
Ok. Is the entry OK if you manually run:
# rebuildfstab -v -r -u $USER -g $GROUP
Yep, that works.
Sorry for responding late.
There is some problem with my (cheap) PC's USB plug. 20% ~ 30% of time when I plug in a USB device, it triggers HW reset. So I plug in USB devices as minimum as possible, and only at some safe time when all my work has been saved. It happened again, just now. Having probed it a while, I now think that the HW reset might be triggered by static electric shock...
Anyway, thanks.
participants (2)
-
Michael Prokop
-
T