| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<pic***o> hey, i think there's a way to do this.. i want a particular directory to be g+w for a certain group.. but i want all files/dirs created under that directory (by members of said group) to also be g+w for that particular group <Phaid> g+s <pic***o> gracias <pic***o> is there a wy to change umask so that files in that dir are created g+w ? <Phaid> ig you change the dir to g+s then files in that dir should be created g+w <Phaid> ah no wait <Phaid> they will be created owned by that group <Phaid> but the permissions will be determined by umask <Phaid> so if you make your umask 002 they should be g+w <pic***o> yeah, so i have to change the global umask huh <Phaid> yup <pic***o> k <pic***o> thanks for ze help <Phaid> np <mza> http://genpaste.pengu.in/pastes/show/234 any ideas why that's failing? <Coweater> inherit couldn't find something and told the program to die <danO3> hi, could you recommand me about a good tcp/ip book? something that i can leran the whole tcp/ip from, but will be easy to learn <bougyman> danO3: TCP/IP Illustrated <danO3> bougyman: who wrote? <FiZi> On Redhat Enterprise 4 AS I've setup a user account who can only gain access via SFTP (/usr/libexec/openssh/sftp-server). They have no problem logging in. I've added them to a group and set that group to be their default but when they create files/folders through SFTP it isn't using the umask I've set of 002 it keeps using the default 022. How do I make it so using OpenSSH as the sftp server their defaul umask is 002 so they will create fi <FiZi> If I set him to have a bash shell then everything works fine <FiZi> but I don't want him to have access to a shell, just sftp <danO3> bougyman: and i see that there is vol 1 and 2, there is any hard diffrent? <Idle`> FiZi: probably with pam <FiZi> pam? <Idle`> pam_limits may do it <Idle`> yea, whenever it forks off something from ssh (well, even SSH itself), itll set the limits... dunno if pam_limits does umask tho <FiZi> and you're talking about pam in the sshd_config? <Idle`> theres probably a pam mod that does umask <Idle`> no <Idle`> sorta <Idle`> not really... <FiZi> lol <Idle`> pam is system wide <Idle`> can be used only for certain apps. <FiZi> Ah ok, i see it in /etc/pam.d <FiZi> there is a sshd file in there <Idle`> yea, thats for sshd :) <Idle`> loads modules for sshd specificly <FiZi> and sftp is a sub-system of sshd <Idle`> yea <FiZi> Balls, it's never an easy answer is it? <FiZi> I thought I had it with the bash profiles <FiZi> but it doesn't process bash profiles if their user account can only use the sftp-server subsystem <Idle`> na, cause sftp doesn't even involk bash <FiZi> Yeh <FiZi> Can I make the system run a script for the user on sftp login? <Idle`> maybe, never really used sftp <Idle`> just rsync and scp <FiZi> Even /etc/profile <FiZi> doesn't help there either <Idle`> nope, thats shell specific <Idle`> generally sh and bash specific I would gander <Idle`> anyhow... bbl <FiZi> Thnx anyway <FiZi> Hah <FiZi> I found a way to do it <FiZi> Make it so the user has a bash shell <FiZi> vi /home/<user account>/.bash_profile <FiZi> add in <FiZi> logout <FiZi> to the bottom <FiZi> sftp works great <FiZi> shell just kicks them right off <sander> what could be wrong when the networking card reports its been down for 15 secs? <sander> it happens from time to time.. <sander> two times today <warjest> how are you forcing them to run sftp on login when it takes parameters? are they static? <FiZi> What do you mean warjest? <warjest> ohhh <warjest> on sftp login <warjest> nevermind <FiZi> heh, later <bougyman> PKG_VERSION=0.0.23 rake create_gem <bougyman> woops <Idle`> eat lawn tools! <Idle`> if I was in a non-public place, it would be easy to entertain myself <pb24ss> uhhh <Idle`> dirty mind.... :) <pb24ss> did you end up getting a car yet? <Idle`> yea, like 3 weeks ago :P <pb24ss> what did you get? <Idle`> Acura 3.2 CL Type-S <pb24ss> i see <pb24ss> shoulda went german <Idle`> I know... :( <Idle`> its a nice car th <Idle`> tho* <pb24ss> PerpIexer: all done now? <bougyman> iab def def<CR>end<UP> <vegasa> can i get some help <vegasa> ? <bujinkan> i have a question regarding a log file that is recognized as a binary file using grep. <Trey> bujinkan: great. too bad we aren't mind readers <Shava> owned <bujinkan> seeing if anyone is willing. this log file was created under a windows app, i believe. <bujinkan> using the "file" command, it says it is a application/octet-stream (data) file <Trey> bujinkan: strings filename | grep pattern <bujinkan> was wanting to use grep to output each time a specific event occurs <bujinkan> have tried "cat scavenger.log | grep -a 'renamed' " and it returns nothing <bujinkan> the file will display fine when using "cat" <Trey> bujinkan: you don't need to do cat there. grep can take in a file name <Trey> bujinkan: but if scavenger.log is a binary file you can try to yank you the ascii bits using strings <Trey> bujinkan: for example, strings scavenger.log | grep renamed <bujinkan> it doesn't return anything when i do that <Trey> strings seems to work a little better than -a <Trey> bujinkan: then maybe renamed isn't in the file? <Trey> if its a windows file it might be in 2 bytes per character format <bujinkan> it is .. under cat you see "[10:24:35] Clip 045678 renamed to 034958" <bujinkan> if it is in 2 bytes per character, would i need to issue a different command? <bujinkan> according to the grep man doc, it says it usually doesn't display binary information as it may muck up the display but you can add -a or --binary-files=text to override <bujinkan> any suggestions? <serilkila> hey guys need some desperate help <serilkila> made a raid array using; <serilkila> mdadm --create /dev/md0 --level=raid0 --raid-devices=4 /dev/sda4 /dev/sdb /dev/sdc /dev/sdd <serilkila> then did mke2fs /dev/md0 &&&&& mount /dev/md0 /home/ <serilkila> however the box rebooted, and now /dev/md0 seems to have disapeared <serilkila> [root@server1 home]# cat /proc/mdstat <serilkila> Personalities : [raid0] <serilkila> can anyone help me out ? <sander> serilkila, issue the command: mdadm /dev/md0 -A /dev/sda4 /dev/sdb /dev/sdc /dev/sdd <inline1> hello <inline1> i just got a live cd of ubuntu .. it wont boot though, i get an xwindows error and i get sent to bash .. i believe i have to configure xconf .. except i dont know how .. any ideas on what i need to do ? i have an ati x800 <serilkila> sander : mdadm: -A would set mode to ***emble, but it is already manage. <serilkila> ty for the idea though, anything else ? :( <sander> it works for me.. but I'm running another raid level.. so I dunno <serilkila> **** <serilkila> any idea how i would add a line to fstab <serilkila> to pick that up ? <sander> I have no idea.. some os'es does it automaticly <sander> I think you have to edit some kinda raidtab file <serilkila> damn <serilkila> yea your right <serilkila> you think the data is gone =( ? <sander> nopes <sander> I was scared it was gone myself.. when I didnt saw the disc <sander> but after doing that cmd.. it came back <serilkila> shiat <serilkila> wel -A is just re***embling the pre existing array <serilkila> im not sure why it wouldnt =[ grr <serilkila> im missin something here shucks <sander> ***emble a pre-existing array <serilkila> yea <sander> after booting.. thats what you want.. to be able to mount the drive <serilkila> mdadm: -A would set mode to ***emble, but it is already manage. <serilkila> what is that meaning <serilkila> heh <sander> so you tell the raid thingie that theese discs is one device <serilkila> yea
Return to
#linuxhelp or Go to some related
logs:
#stocks can you snort time released concerta #politics www.teenfuns.com #windows !find videobox #asp best panini los angeles device transfer license not found aspi_me.exe
|
|