This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Recreate a user that was created previously | |
# TODO: this onworking script has the side effect of setting the ownership badly on user with | |
# previous same userid. Must be fixed. | |
# create user | |
username=$1 | |
adduser $username --home /data/users/$username |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Workaround script to copy from hdfs file system to NAS | |
# solving permission limitation at writing on NAS directly with hdfs command | |
# | |
# Usage: | |
# $ hdfs2Nas <full path> <destination directory> | |
SOURCE=$1 | |
DEST=$2 |
NewerOlder